Skip to content

Commit

Permalink
Merge pull request #40 from thin-edge/ci-add-ui-version
Browse files Browse the repository at this point in the history
ci: update ci workflows dependencies and add version to ui package
  • Loading branch information
reubenmiller authored Mar 18, 2024
2 parents 45d75cf + df951db commit af37dad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '>=1.17.0'
cache: false
- run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
name: Install dependencies
- name: Install node.js dependencies
Expand All @@ -35,17 +36,18 @@ jobs:
- name: Build and zip UI-Plugin
run : |
cd ./ui
UI_VERSION=$(jq -r .version package.json)
npm run build-ci
cd dist/apps/tedge-container-plugin-ui
zip -r -q ../../../../dist/tedge-container-plugin-ui.zip *
zip -r -q "../../../../dist/tedge-container-plugin-ui_${UI_VERSION}.zip" *
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: packages
path: dist/*

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit af37dad

Please sign in to comment.