Skip to content

Commit ca2b655

Browse files
committed
chore: update ci
1 parent f5dd5bf commit ca2b655

1 file changed

Lines changed: 22 additions & 38 deletions

File tree

.github/workflows/flatpak.yml

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,27 @@ jobs:
77
name: Setup
88
runs-on: ubuntu-latest
99
steps:
10-
# - name: Import SSH key
11-
# id: key
12-
# run: |
13-
# echo "Importing SSH ley..."
14-
# mkdir -p ~/.ssh
15-
# echo "${{ secrets.ID_RSA }}" | base64 -d > ~/.ssh/id_rsa
16-
# echo "Updating ~/.ssh/known_hosts..."
17-
# ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
18-
# chmod 700 ~/.ssh
19-
# chmod 600 ~/.ssh/id_rsa
20-
# echo "Step completed"
10+
- name: Import SSH key
11+
id: key
12+
run: |
13+
echo "Importing SSH ley..."
14+
mkdir -p ~/.ssh
15+
echo "${{ secrets.ID_RSA }}" | base64 -d > ~/.ssh/id_rsa
16+
echo "Updating ~/.ssh/known_hosts..."
17+
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
18+
chmod 700 ~/.ssh
19+
chmod 600 ~/.ssh/id_rsa
20+
echo "Step completed"
2121
22-
# - name: Clone repo
23-
# id: clone
24-
# run: git clone git@github.com:flathub/io.github.Figma_Linux.figma_linux.git ./
22+
- name: Clone repo
23+
id: clone
24+
run: git clone git@github.com:flathub/io.github.Figma_Linux.figma_linux.git ./
2525

26-
# - name: Update configs
27-
# id: update
28-
# run: |
29-
# sudo apt install libxml2-utils -y
30-
# echo "<li>Bug Fixes:</li>" >> /tmp/testfile
31-
# echo "<ul>" >> /tmp/testfile
32-
# echo "<li>fix: 1</li>" >> /tmp/testfile
33-
# echo "<li>fix: 2</li>" >> /tmp/testfile
34-
# echo "</ul>" >> /tmp/testfile
35-
# data=$(cat /tmp/testfile | tr -d '\n')
36-
# cat ./io.github.Figma_Linux.figma_linux.appdata.xml
37-
# cat /tmp/testfile
38-
# prevVersion=$(cat ./io.github.Figma_Linux.figma_linux.appdata.xml | grep -Eo 'release\sversion=".*"\s' | tr -d '[a-z=" \s\n]')
39-
# version="0.7.3"
40-
# echo "Bump version from $prevVersion to $version"
41-
# sed -i "s/$prevVersion/$version/" ./io.github.Figma_Linux.figma_linux.yml
42-
# sed -i "s/$prevVersion/$version/" ./io.github.Figma_Linux.figma_linux.appdata.xml
43-
# cat ./io.github.Figma_Linux.figma_linux.appdata.xml | tr -d '\n' > /tmp/tmp1
44-
# sed -i "s|<description>.\{0,12\}<ul>.*<\/ul>.\{0,12\}<\/description>|<description><ul>$data<\/ul><\/description>|g" /tmp/tmp1
45-
# xmllint --format /tmp/tmp1 > ./io.github.Figma_Linux.figma_linux.appdata.xml
46-
# cat ./io.github.Figma_Linux.figma_linux.appdata.xml
26+
- name: Update configs
27+
id: update
28+
run: |
29+
node -v
30+
npm -v
4731
4832
# - name: Push
4933
# id: push
@@ -53,9 +37,9 @@ jobs:
5337
# git add .
5438
# git commit -m "Release v$version"
5539
# git push origin master
56-
- name: Create Pull Request
57-
run: |
58-
curl -X POST -u "ChugunovRoman:${{ secrets.REPO_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flathub/io.github.Figma_Linux.figma_linux/pulls -d '{"title": "Release v0.7.4 version","head":"Figma-Linux:bump-version","base":"master"}'
40+
# - name: Create Pull Request
41+
# run: |
42+
# curl -X POST -u "ChugunovRoman:${{ secrets.REPO_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flathub/io.github.Figma_Linux.figma_linux/pulls -d '{"title": "Release v0.7.4 version","head":"Figma-Linux:bump-version","base":"master"}'
5943

6044
# - uses: octokit/request-action@v2.x
6145
# name: Create Pull Request

0 commit comments

Comments
 (0)