7676 - name : Run GoReleaser
7777 uses : goreleaser/goreleaser-action@v6
7878 with :
79- args : release --clean --skip=publish --skip=validate
79+ args : release --clean
8080 env :
8181 GITHUB_TOKEN : ${{ secrets.CLI_RELEASE }}
8282 GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
@@ -96,50 +96,50 @@ jobs:
9696 path : dist
9797 retention-days : 1
9898
99- # publish-apt:
100- # name: Publish APT
101- # runs-on: macOS-latest
102- # needs: [goreleaser]
103- # env:
104- # # Needed to publish new packages to our S3-hosted APT repo
105- # AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
106- # AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
107- # steps:
108- # - name: Checkout
109- # uses: actions/checkout@v5
99+ publish-apt :
100+ name : Publish APT
101+ runs-on : macOS-latest
102+ needs : [goreleaser]
103+ env :
104+ # Needed to publish new packages to our S3-hosted APT repo
105+ AWS_ACCESS_KEY_ID : ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
106+ AWS_SECRET_ACCESS_KEY : ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
107+ steps :
108+ - name : Checkout
109+ uses : actions/checkout@v5
110110
111- # # use the artifacts from the "goreleaser" job
112- # - name: Download artifacts from workflow
113- # uses: actions/download-artifact@v5
114- # with:
115- # name: goreleaser-dist-temp
116- # path: dist
111+ # use the artifacts from the "goreleaser" job
112+ - name : Download artifacts from workflow
113+ uses : actions/download-artifact@v5
114+ with :
115+ name : goreleaser-dist-temp
116+ path : dist
117117
118- # - name: Install Aptly
119- # run: brew install aptly
118+ - name : Install Aptly
119+ run : brew install aptly
120120
121- # - name: Import GPG key
122- # uses: crazy-max/ghaction-import-gpg@v6
123- # id: import_gpg
124- # with:
125- # gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
126- # passphrase: ${{ secrets.GPG_PASSPHRASE }}
121+ - name : Import GPG key
122+ uses : crazy-max/ghaction-import-gpg@v6
123+ id : import_gpg
124+ with :
125+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
126+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
127127
128- # - name: Publish packages to APT repo
129- # if: contains(github.ref_name, '-') == false
130- # env:
131- # GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
132- # GPG_PRIVATE_KEY_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
133- # run: ./scripts/publish-apt-packages.sh
128+ - name : Publish packages to APT repo
129+ if : contains(github.ref_name, '-') == false
130+ env :
131+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
132+ GPG_PRIVATE_KEY_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
133+ run : ./scripts/publish-apt-packages.sh
134134
135135 publish-rpm :
136136 name : Publish RPM
137137 runs-on : ubuntu-latest
138138 needs : [goreleaser]
139139 env :
140140 # Needed to publish new packages to our S3-hosted RPM repo
141- AWS_ACCESS_KEY_ID : ${{ secrets.TEST_OBJECT_STORAGE_ACCESS_KEY_ID }}
142- AWS_SECRET_ACCESS_KEY : ${{ secrets.TEST_OBJECT_STORAGE_SECRET_ACCESS_KEY }}
141+ AWS_ACCESS_KEY_ID : ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
142+ AWS_SECRET_ACCESS_KEY : ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
143143 AWS_DEFAULT_REGION : eu01
144144 AWS_ENDPOINT_URL : https://object.storage.eu01.onstackit.cloud
145145 steps :
@@ -165,7 +165,7 @@ jobs:
165165 passphrase : ${{ secrets.GPG_PASSPHRASE }}
166166
167167 - name : Publish RPM packages
168- # if: contains(github.ref_name, '-') == false
168+ if : contains(github.ref_name, '-') == false
169169 env :
170170 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
171171 GPG_PRIVATE_KEY_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
0 commit comments