Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload packages to Gemfury #223

Merged
merged 1 commit into from
Sep 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 10 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,43 +382,20 @@ jobs:
steps:
- name: Check out code base
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT }}
repository: 'wabarc/apt-repo'

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.PRODUCT }}
path: ${{ env.PRODUCT }}

- name: Import GPG key
id: gpg
uses: crazy-max/ghaction-import-gpg@34ea557550c84ea665cae5c61c3b084feac7e042 # v5.0.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}

- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.gpg.outputs.keyid }}"
echo "name: ${{ steps.gpg.outputs.name }}"
echo "email: ${{ steps.gpg.outputs.email }}"
gpg --armor --export-secret-keys > priv.asc

- name: Build APT Repository
if: ${{ steps.gpg.outputs.keyid != '' }}
run: |
cp ./${{ env.PRODUCT }}/*.deb .
make build
- name: List generated files
run: ls -l ./${{ env.PRODUCT }}/*.deb

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

release-rpm:
if: github.repository == 'wabarc/wayback'
Expand All @@ -428,26 +405,20 @@ jobs:
steps:
- name: Check out code base
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT }}
repository: 'wabarc/rpm-repo'

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.PRODUCT }}
path: ${{ env.PRODUCT }}

- name: Build RPM Repository
run: |
cp ./${{ env.PRODUCT }}/*.rpm ./x86_64
make build
- name: List generated files
run: ls -l ./${{ env.PRODUCT }}/*.rpm

- name: Publish RPM Repository
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
make publish
env:
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
run: for f in ./${{ env.PRODUCT }}/*.rpm; do curl --fail -F package=@$f https://$FURY_TOKEN@push.fury.io/wabarc/; done

notification:
if: github.repository == 'wabarc/wayback'
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,26 @@ sudo snap install wayback
Via [APT](https://github.com/wabarc/apt-repo):

```bash
curl -s https://apt.wabarc.eu.org/KEY.gpg | sudo apt-key add -
sudo echo "deb https://apt.wabarc.eu.org/ /" > /etc/apt/sources.list.d/wayback.list
curl -fsSL https://repo.wabarc.eu.org/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/packages.wabarc.gpg
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
sudo apt update
sudo apt install wayback
```

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

```bash
sudo cat > /etc/yum.repos.d/wayback.repo<< EOF
sudo rpm --import https://repo.wabarc.eu.org/yum/gpg.key
sudo tee /etc/yum.repos.d/wayback.repo > /dev/null <<EOT
[wayback]
name=Wayback Repository
baseurl=https://rpm.wabarc.eu.org/x86_64/
name=Wayback Archiver
baseurl=https://repo.wabarc.eu.org/yum/
enabled=1
gpgcheck=0
EOF
gpgcheck=1
gpgkey=https://repo.wabarc.eu.org/yum/gpg.key
EOT

sudo yum install -y wayback
sudo dnf install -y wayback
```

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