remove cache hint as scripts cache is now invalidated correctly #33
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
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 }} |