Skip to content

Commit

Permalink
ops: github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dev6699 committed May 13, 2024
1 parent 3767181 commit 747dbd8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 747dbd8

Please sign in to comment.