Skip to content

Commit

Permalink
build: Add branch previews (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pojntfx committed Aug 25, 2021
1 parent b70efe0 commit 62a2d5d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/hydrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
go-version: 1.16
- name: Build with hydrun
run: go run main.go -o golang ./Hydrunfile
- name: Publish branch preview to GitHub releases
if: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/v') }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.ref }}
prerelease: true
files: |
out/*
- name: Publish pre-release to GitHub releases
if: ${{ github.ref == 'refs/heads/main' }}
uses: marvinpinto/action-automatic-releases@latest
Expand Down

0 comments on commit 62a2d5d

Please sign in to comment.