The closing ?> tag should be omitted from files containing only PHP. #22
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/[email protected] | |
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/[email protected] | |
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 }} |