Skip to content

Commit ecdfd56

Browse files
committed
ci: update
1 parent 29d3425 commit ecdfd56

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Manually Upload to Launchpad PPA
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
setup:
7+
name: Setup
8+
uses: ./.github/workflows/reuse_setup.yml
9+
secrets: inherit
10+
11+
flathub:
12+
name: Upload
13+
uses: ./.github/workflows/reuse_launchpad.yml
14+
secrets: inherit
15+
needs: setup

.github/workflows/reuse_launchpad.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ jobs:
1111
with:
1212
path: ./
1313

14-
- name: Import keys
14+
- name: Get Artefacts
1515
run: |
16+
cd ./repo
17+
newVersion=$(git tag --sort=version:refname | tail -n1 | tr -d 'v' | tr -d '\n')
18+
wget https://github.com/Figma-Linux/figma-linux/releases/download/v${newVersion}/figma-linux_${newVersion}_linux_amd64.zip
19+
mkdir -p build/installers/linux-unpacked
20+
unzip figma-linux_${newVersion}_linux_amd64.zip -d ./build/installers/linux-unpacked/
21+
cd ..
1622
mv ./repo/* ./
17-
mv ./amd64/* ./
1823
rm -rf ./repo
19-
rm -rf ./amd64
2024
chmod +x ./**/*.sh
2125
chmod +x ./**/*.pl
26+
27+
- name: Import keys
2228
mkdir ./gpg
2329
echo "${{ secrets.GPG_PUB_KEY }}" | base64 -d > ./gpg/pub.key
2430
echo "${{ secrets.GPG_SECRET_KEY }}" | base64 -d > ./gpg/secret.key

0 commit comments

Comments
 (0)