-
-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (33 loc) · 1003 Bytes
/
Copy pathdraftrelease.yml
File metadata and controls
39 lines (33 loc) · 1003 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
35
36
37
38
39
name: Draft New Release
on:
workflow_dispatch:
secrets:
GITHUB_TOKEN:
required: true
jobs:
call-build:
uses: ./.github/workflows/builds.yml
create-release:
needs: call-build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- id: parsechangelog
run: python .github/workflows/parsechangelog.py
- name: Download build artifacts
uses: actions/download-artifact@v8
with:
path: artifacts
- run: ls -Rl artifacts
- name: Create draft release
run: |
gh release create "${{ steps.parsechangelog.outputs.releasetag }}" \
artifacts/GitFourchette-*/*.AppImage \
--repo "$GITHUB_REPOSITORY" \
--title "${{ steps.parsechangelog.outputs.releasetag }}" \
--notes-file github_actions_release_notes.md \
--draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}