Skip to content

Commit

Permalink
Add github release as release target
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Nov 13, 2021
1 parent 900beba commit 3f491ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run build
run: make build
- uses: docker/login-action@v1
with:
registry: https://ghcr.io
Expand All @@ -34,3 +36,15 @@ jobs:
push: true
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Check Tag
run: |
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-output name=result::false
else
echo ::set-output name=result::true
fi
id: is_prerelease
- uses: softprops/action-gh-release@v1
with:
prerelease: ${{ steps.is_prerelease.outputs.result }}
files: build/*
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- main
Expand Down

0 comments on commit 3f491ec

Please sign in to comment.