Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 6, 2024
1 parent 6789048 commit 69e8113
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ fi
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- Enable deployment of OCI images. -->
<activeProfiles>
<activeProfile>io7m-oci-image</activeProfile>
</activeProfiles>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/deploy.linux.temurin.lts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: deploy.linux.temurin.lts

on:
Expand All @@ -16,12 +17,19 @@ jobs:
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
distribution: temurin

- name: Import signing key
env:
PGP_SIGNING_KEY: ${{ secrets.PGP_SIGNING_KEY }}
run: echo "${PGP_SIGNING_KEY}" | gpg --import
run: echo ${PGP_SIGNING_KEY} | gpg --import

- name: Log in to Quay.io.
uses: redhat-actions/podman-login@v1.7
with:
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
registry: 'quay.io'

- name: Deploy release
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/main.linux.temurin.lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: com.io7m.xstructural.tests/target/site/jacoco-aggregate/jacoco.xml

- name: Log in to Quay.io.
uses: redhat-actions/podman-login@v1.7
with:
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
registry: 'quay.io'

- name: Deploy snapshot
if: ${{ steps.project_is_snapshot.outputs.IO7M_PROJECT_VERSION_IS_SNAPSHOT == 'true' }}
env:
Expand Down

0 comments on commit 69e8113

Please sign in to comment.