-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
647332a
commit 04aae98
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: pre-release | ||
run-name: Building the project for Pre Release | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-release: | ||
name: "Pre Release" | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.21.x" | ||
- run: cd ${{ github.workspace }} | ||
- run: ls -la | ||
- run: | | ||
gofmt -w . | ||
git add . | ||
git config --global user.name 'GitHub Autobot' | ||
git config --global user.email '[email protected]' | ||
git diff-index --quiet HEAD || git commit -am "gofmt checks" && git push | ||
- name: Install dependencies | ||
run: go get ./... | ||
- name: Build | ||
run: go build -v -o ./output/app | ||
# - name: Test with the Go CLI | ||
# run: go test | ||
# - uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: app | ||
# path: ./output/app | ||
- uses: "marvinpinto/[email protected]" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
automatic_release_tag: latest | ||
title: "Development Build" | ||
files: | | ||
LICENSE | ||
./output/app |