Skip to content

Commit

Permalink
Merge pull request #135 from RDFLib/edmond/versioning
Browse files Browse the repository at this point in the history
Update release workflow
  • Loading branch information
jamiefeiss authored Jan 24, 2024
2 parents 6c2aef5 + 20fd319 commit 7ecd8cc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 45 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/create-release.yml

This file was deleted.

30 changes: 28 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Push Docker images to GHCR
name: Release

on:
# Runs on tagged releases
Expand All @@ -11,6 +11,7 @@ on:

env:
IMAGE_NAME: ghcr.io/rdflib/prez-ui
NODE_VERSION: latest

# Grants permissions for GITHUB_TOKEN
permissions:
Expand All @@ -20,7 +21,7 @@ permissions:

jobs:
# build & push Docker image
docker:
build-container-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand Down Expand Up @@ -57,3 +58,28 @@ jobs:
# Set provenance to false due to issue documented here: https://github.com/docker/build-push-action/issues/778
provenance: false
platforms: linux/amd64,linux/arm64

upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Get release version
id: version
run: echo "VALUE=$(npx --yes semver ${{ github.event.inputs.tag }})" >> "$GITHUB_OUTPUT"

- name: Update project version and zip file
run: |
npm version ${{ steps.version.outputs.VALUE }} --no-git-tag-version
cd .. && zip -r prez-ui-${{ steps.version.outputs.VALUE }}.zip prez-ui
- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
files: ../prez-ui-${{ steps.version.outputs.VALUE }}.zip

0 comments on commit 7ecd8cc

Please sign in to comment.