From 28bc13258bba5882780ad5b1eb6347de522cb6d4 Mon Sep 17 00:00:00 2001 From: ex0ns Date: Mon, 22 Nov 2021 18:00:13 +0100 Subject: [PATCH] Create release pipeline --- .github/workflows/release.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7306f5a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,27 @@ +name: Publish Release + +on: workflow_dispatch + +jobs: + compile-all: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - uses: jodersky/setup-mill@v0.2.3 + with: + mill-version: 0.9.10 + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v3 + with: + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Publish + shell: bash + env: + USERNAME: ${{ secrets.OSS_USERNAME }} + PASSWORD: ${{ secrets.OSS_PASSWORD }} + run: | + mill mill.scalalib.PublishModule/publishAll __.publishArtifacts --sonatypeCreds "$USERNAME:$PASSWORD"