Skip to content

Commit

Permalink
admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Apr 1, 2024
1 parent 1f2115d commit 8176d2a
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -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"
}
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
9 changes: 9 additions & 0 deletions project.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8176d2a

Please sign in to comment.