-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 940 Bytes
/
release-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}