diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae3bbb0..48d1a30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80c12b5..3317900 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ name: test on: push: + branches: + - "*" pull_request: branches: - main