From 747dbd832e0c8f56bca49d2900fb1604c73d265d Mon Sep 17 00:00:00 2001 From: kweijack Date: Mon, 13 May 2024 12:39:26 +0000 Subject: [PATCH] ops: github release workflow --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fb428d3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Pre-build image and build release in devcontainer + uses: devcontainers/ci@v0.3 + with: + imageName: ghcr.io/dev6699/rterm-devcontainer + cacheFrom: ghcr.io/dev6699/rterm-devcontainer + push: always + runCmd: make build + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + rterm