-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (75 loc) · 2.28 KB
/
blank.yml
File metadata and controls
88 lines (75 loc) · 2.28 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Appimage
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 14 * * 0"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/pkgforge-dev/archlinux:latest
steps:
- uses: actions/checkout@v4
- name: get dependencies
if: always()
run: |
chmod +x ./get-dependencies.sh && ./get-dependencies.sh
- name: Make AppImage
run: |
chmod +x ./*-appimage.sh && ./*-appimage.sh
mkdir dist
mv *.AppImage* dist/
mv *.AppBundle* dist/
- name: Check version file
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload artifact
uses: actions/upload-artifact@v4.6.2
with:
name: AppImage
path: 'dist'
- name: Upload version file
uses: actions/upload-artifact@v4.6.2
with:
name: version
path: ~/version
release:
if: ${{ github.ref_name == 'main' }}
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.3.0
with:
name: AppImage
- uses: actions/download-artifact@v4.3.0
with:
name: version
- name: Read version and Get date
run: |
echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
- name: Release Artifacts
uses: softprops/action-gh-release@v2.2.2
with:
name: "DeSmuME: ${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: true
files: |
*.AppImage*
*.AppBundle*
- uses: actions/checkout@v4
- name: Update LATEST_VERSION
run: |
echo "${{ env.VERSION }}" > ./LATEST_VERSION
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ./LATEST_VERSION
git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
git push