From 8176d2a95f9e651b79d35bd173123241797c28a0 Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Mon, 1 Apr 2024 20:06:42 +0200 Subject: [PATCH] admin --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ project.scala | 9 +++++++++ 3 files changed, 68 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/workflows/ci.yml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3aaaa74 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu +{ + "name": "Ubuntu", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:jammy", + "customizations": { + "vscode": { + "extensions": ["scalameta.metals", "usernamehw.errorlens"] + } + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": 21 + }, + "ghcr.io/devcontainers/features/node:1": {}, + "ghcr.io/devcontainers-contrib/features/scalacli-sdkman:2": {} + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "" + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4b5b78f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: + push: + branches: + - main + tags: + - "v*" + pull_request: + +jobs: + publish: + if: github.event_name == 'push' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: coursier/cache-action@v6.4 + - uses: VirtusLab/scala-cli-setup@main + - name: Publish + run: scala-cli publish . --power --secret-key env:PUBLISH_SECRET_KEY --secret-key-password env:PUBLISH_SECRET_KEY_PASSWORD --user env:PUBLISH_USER --password env:PUBLISH_PASSWORD + env: + PUBLISH_USER: ${{ secrets.PUBLISH_USER }} + PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} + PUBLISH_SECRET_KEY: ${{ secrets.PUBLISH_SECRET_KEY }} + PUBLISH_SECRET_KEY_PASSWORD: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }} diff --git a/project.scala b/project.scala index dcfefb0..6b881db 100644 --- a/project.scala +++ b/project.scala @@ -11,3 +11,12 @@ //> using dep com.lihaoyi::scalatags::0.12.0 //> using dep org.scalameta::munit::1.0.0-M11 + +//> using publish.repository central-s01 +//> using publish.organization io.github.quafadas +//> using publish.name "live-server-scala-cli-js" +//> using publish.computeVersion "git:tag" +//> using publish.license "Apache-2.0" +//> using publish.url "https://github.com/quafadas/live-server-scala-cli-js" +//> using publish.versionControl "github:quafadas/live-server-scala-cli-js" +//> using publish.developer "Simon Parten||https://github.com/Quafadas"