Skip to content

Commit

Permalink
Add action to build main on push
Browse files Browse the repository at this point in the history
  • Loading branch information
xdpirate committed Nov 20, 2023
1 parent 9b52b2e commit 3467e47
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and publish latest commit
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: xdpirate
steps:
- name: Generate short sha
uses: benjlevesque/short-sha@v2.2
id: short-sha
with:
length: 7
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Zip repo
uses: montudor/action-zip@v1
with:
args: zip -qq -r GameHorizon-${{ steps.short-sha.outputs.sha }}.zip .
- name: Upload release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "GameHorizon-${{ steps.short-sha.outputs.sha }}.zip"
generateReleaseNotes: true
makeLatest: true
name: GameHorizon-${{ steps.short-sha.outputs.sha }}
tag: ${{ steps.short-sha.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3467e47

Please sign in to comment.