Skip to content

Commit f69bf76

Browse files
Upload packages to Gemfury (#223)
1 parent c1f39cd commit f69bf76

File tree

2 files changed

+20
-47
lines changed

2 files changed

+20
-47
lines changed

.github/workflows/release.yml

+10-39
Original file line numberDiff line numberDiff line change
@@ -382,43 +382,20 @@ jobs:
382382
steps:
383383
- name: Check out code base
384384
uses: actions/checkout@v3
385-
with:
386-
token: ${{ secrets.GH_PAT }}
387-
repository: 'wabarc/apt-repo'
388385

389386
- name: Download artifact
390387
uses: actions/download-artifact@v2
391388
with:
392389
name: ${{ env.PRODUCT }}
393390
path: ${{ env.PRODUCT }}
394391

395-
- name: Import GPG key
396-
id: gpg
397-
uses: crazy-max/ghaction-import-gpg@34ea557550c84ea665cae5c61c3b084feac7e042 # v5.0.0
398-
with:
399-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
400-
401-
- name: GPG user IDs
402-
run: |
403-
echo "fingerprint: ${{ steps.gpg.outputs.fingerprint }}"
404-
echo "keyid: ${{ steps.gpg.outputs.keyid }}"
405-
echo "name: ${{ steps.gpg.outputs.name }}"
406-
echo "email: ${{ steps.gpg.outputs.email }}"
407-
gpg --armor --export-secret-keys > priv.asc
408-
409-
- name: Build APT Repository
410-
if: ${{ steps.gpg.outputs.keyid != '' }}
411-
run: |
412-
cp ./${{ env.PRODUCT }}/*.deb .
413-
make build
392+
- name: List generated files
393+
run: ls -l ./${{ env.PRODUCT }}/*.deb
414394

415395
- name: Publish APT Repository
416-
if: ${{ steps.gpg.outputs.keyid != '' }}
417-
run: |
418-
git config --local user.name 'github-actions[bot]'
419-
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
420-
make publish
421-
rm -f priv.asc
396+
env:
397+
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
398+
run: for f in ./${{ env.PRODUCT }}/*.deb; do curl --fail -F package=@$f https://[email protected]/wabarc/; done
422399

423400
release-rpm:
424401
if: github.repository == 'wabarc/wayback'
@@ -428,26 +405,20 @@ jobs:
428405
steps:
429406
- name: Check out code base
430407
uses: actions/checkout@v3
431-
with:
432-
token: ${{ secrets.GH_PAT }}
433-
repository: 'wabarc/rpm-repo'
434408

435409
- name: Download artifact
436410
uses: actions/download-artifact@v2
437411
with:
438412
name: ${{ env.PRODUCT }}
439413
path: ${{ env.PRODUCT }}
440414

441-
- name: Build RPM Repository
442-
run: |
443-
cp ./${{ env.PRODUCT }}/*.rpm ./x86_64
444-
make build
415+
- name: List generated files
416+
run: ls -l ./${{ env.PRODUCT }}/*.rpm
445417

446418
- name: Publish RPM Repository
447-
run: |
448-
git config --local user.name 'github-actions[bot]'
449-
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
450-
make publish
419+
env:
420+
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
421+
run: for f in ./${{ env.PRODUCT }}/*.rpm; do curl --fail -F package=@$f https://[email protected]/wabarc/; done
451422

452423
notification:
453424
if: github.repository == 'wabarc/wayback'

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,26 @@ sudo snap install wayback
6060
Via [APT](https://github.com/wabarc/apt-repo):
6161

6262
```bash
63-
curl -s https://apt.wabarc.eu.org/KEY.gpg | sudo apt-key add -
64-
sudo echo "deb https://apt.wabarc.eu.org/ /" > /etc/apt/sources.list.d/wayback.list
63+
curl -fsSL https://repo.wabarc.eu.org/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/packages.wabarc.gpg
64+
echo "deb [arch=amd64,arm64,armhf signed-by=/usr/share/keyrings/packages.wabarc.gpg] https://repo.wabarc.eu.org/apt/ /" | sudo tee /etc/apt/sources.list.d/wayback.list
6565
sudo apt update
6666
sudo apt install wayback
6767
```
6868

6969
Via [RPM](https://github.com/wabarc/rpm-repo):
7070

7171
```bash
72-
sudo cat > /etc/yum.repos.d/wayback.repo<< EOF
72+
sudo rpm --import https://repo.wabarc.eu.org/yum/gpg.key
73+
sudo tee /etc/yum.repos.d/wayback.repo > /dev/null <<EOT
7374
[wayback]
74-
name=Wayback Repository
75-
baseurl=https://rpm.wabarc.eu.org/x86_64/
75+
name=Wayback Archiver
76+
baseurl=https://repo.wabarc.eu.org/yum/
7677
enabled=1
77-
gpgcheck=0
78-
EOF
78+
gpgcheck=1
79+
gpgkey=https://repo.wabarc.eu.org/yum/gpg.key
80+
EOT
7981

80-
sudo yum install -y wayback
82+
sudo dnf install -y wayback
8183
```
8284

8385
Via [Homebrew](https://github.com/wabarc/homebrew-wayback):

0 commit comments

Comments
 (0)