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 Dec 25, 2024
1 parent f17373f commit e66d6e5
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/[email protected]
with:
imageName: ghcr.io/dev6699/fisheyedewarp-devcontainer
cacheFrom: ghcr.io/dev6699/fisheyedewarp-devcontainer
push: always
runCmd: make build

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
fisheyedewarp

0 comments on commit e66d6e5

Please sign in to comment.