Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChugunovRoman committed Nov 17, 2023
1 parent 29d3425 commit ecdfd56
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/manualrun_launchpad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Manually Upload to Launchpad PPA

on: workflow_dispatch

jobs:
setup:
name: Setup
uses: ./.github/workflows/reuse_setup.yml
secrets: inherit

flathub:
name: Upload
uses: ./.github/workflows/reuse_launchpad.yml
secrets: inherit
needs: setup
12 changes: 9 additions & 3 deletions .github/workflows/reuse_launchpad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ jobs:
with:
path: ./

- name: Import keys
- name: Get Artefacts
run: |
cd ./repo
newVersion=$(git tag --sort=version:refname | tail -n1 | tr -d 'v' | tr -d '\n')
wget https://github.com/Figma-Linux/figma-linux/releases/download/v${newVersion}/figma-linux_${newVersion}_linux_amd64.zip
mkdir -p build/installers/linux-unpacked
unzip figma-linux_${newVersion}_linux_amd64.zip -d ./build/installers/linux-unpacked/
cd ..
mv ./repo/* ./
mv ./amd64/* ./
rm -rf ./repo
rm -rf ./amd64
chmod +x ./**/*.sh
chmod +x ./**/*.pl
- name: Import keys
mkdir ./gpg
echo "${{ secrets.GPG_PUB_KEY }}" | base64 -d > ./gpg/pub.key
echo "${{ secrets.GPG_SECRET_KEY }}" | base64 -d > ./gpg/secret.key
Expand Down

0 comments on commit ecdfd56

Please sign in to comment.