-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.46 KB
/
release.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
41
42
43
44
45
46
name: Release
on: [push, workflow_dispatch]
jobs:
create-image:
if: github.event.pull_request.draft != true # #GreenIT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: LinqLover/create-image@latest
id: create-image
with:
prepare-script: ./scripts/prepareImage.st
postpare-script: ./scripts/postpareImage.st
- uses: actions/upload-artifact@master
with:
name: image
path: ${{ steps.create-image.outputs.bundle-path }}
release-image:
needs: create-image
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- id: date
run: echo "date=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@master
with:
name: image
- run: mv Squeak*.zip SqueakInboxTalk-${{ steps.date.outputs.date }}.zip
- uses: softprops/action-gh-release@v1
with:
tag_name: untagged-${{ steps.date.outputs.date }}
body: ${{ github.event.head_commit.message }}
files: SqueakInboxTalk-*.zip
fail_on_unmatched_files: true
prerelease: true
env:
GITHUB_TOKEN: ${{ github.token }}
- uses: dev-drprasad/[email protected]
with:
delete_tag_pattern: untagged-
keep_latest: 1
delete_tags: true
env:
GITHUB_TOKEN: ${{ github.token }}