Skip to content

Commit b2310d1

Browse files
committedJul 11, 2022
Fixes the release action
1 parent 063e8ee commit b2310d1

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed
 

‎.github/workflows/go_release.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
9-
name: build
8+
release:
9+
name: release
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -28,22 +28,13 @@ jobs:
2828
# builds the binary and the .deb
2929
run: make deb
3030

31-
release:
32-
name: release
33-
needs: build
34-
runs-on: ubuntu-latest
35-
36-
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@v3
39-
4031
- name: Publish release to aptly
4132
env:
4233
APTLY_USER: ${{ secrets.APTLY_USER }}
4334
APTLY_PASSWORD: ${{ secrets.APTLY_PASSWORD }}
4435
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
4536
run: |
46-
./deb-package/upload-artifacts.sh deb-package/dist/
37+
./deb-package/upload-artifacts.sh deb-package/dist
4738
4839
- name: Update artifacts to Github's release
4940
uses: softprops/action-gh-release@v1

‎deb-package/upload-artifacts.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# This script uploads .deb packages, creates a snapshot and publish a new
44
# version. It expects as input the folder containing the *.deb files.
@@ -32,12 +32,15 @@ gpg_passphrase="$GPG_PASSPHRASE" # will be passed over the network, use TLS !
3232
aptly_api="https://aptly-api.dedis.ch"
3333

3434
gitversion=$(git describe --abbrev=0 --tags)
35-
version=${gitversion:1}
35+
version="${gitversion:1}"
3636

3737
aptly_repository=dvoting-release
3838
aptly_snapshot=dvoting-$version
3939
aptly_published=s3:apt.dedis.ch:/squeeze
4040

41+
echo "getting packages from $packages:"
42+
ls $packages
43+
4144
echo "Check if snapshot $aptly_snapshot already exists"
4245
res=$(curl -s -u $aptly_user:$aptly_password -o /dev/null -w "%{http_code}" ${aptly_api}/api/snapshots/$aptly_snapshot)
4346

0 commit comments

Comments
 (0)
Please sign in to comment.