-
-
Notifications
You must be signed in to change notification settings - Fork 13
34 lines (31 loc) · 961 Bytes
/
Copy pathprerelease-on-commit.yml
File metadata and controls
34 lines (31 loc) · 961 Bytes
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: Prerelease on Commit
on:
push:
branches:
- master
permissions:
contents: write
jobs:
prerelease:
name: Publish Prerelease
runs-on: ubuntu-latest
# Package and README bot commits are not releases
if: >-
github.event.head_commit.author.name != 'Package Bot' &&
github.event.head_commit.author.name != 'README Bot' &&
!startsWith(github.event.head_commit.message, 'Bot Updating')
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- run: bash ci-scripts/create-releases.sh
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: proot-apps-*
tag: prerelease-${{ github.sha }}
release_name: Prerelease ${{ github.sha }}
body: ${{ github.event.head_commit.message }}
prerelease: true
overwrite: true
file_glob: true