-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (36 loc) · 1.12 KB
/
ci.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
35
36
37
38
39
40
---
name: CI
on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
push:
branches: [master]
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Release
id: setup_release
uses: LizardByte/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create/Update GitHub Release
if: >-
(github.event_name == 'push' && github.ref == 'refs/heads/master') &&
steps.setup_release.outputs.publish_release == 'true'
uses: LizardByte/[email protected]
with:
allowUpdates: true
artifacts: ""
body: ''
discussionCategory: announcements
generateReleaseNotes: true
name: ${{ steps.setup_release.outputs.release_tag }}
prerelease: ${{ steps.setup_release.outputs.publish_pre_release }}
tag: ${{ steps.setup_release.outputs.release_tag }}
token: ${{ secrets.GH_BOT_TOKEN }}