From 39a6ab5fccb208fe466714f4ade204044f2ca63c Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Sat, 2 Dec 2023 23:19:02 -0500 Subject: [PATCH] New workflow steps to use version --- .gitea/workflows/build.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5954fa8..fb4ea58 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -23,8 +23,13 @@ jobs: run: npm install -g @quasar/cli - name: Build Project run: quasar build -m pwa - # - name: Archive Production Artifact - # uses: actions/upload-artifact@v2 - # with: - # name: build-artifact - # path: dist/pwa + - name: Get Version Number + id: get_version + run: echo "::set-output name=VERSION::$(node -p "require('./package.json').version")" + - name: Create Tarball of Build + run: tar -czvf build-${{ steps.get_version.outputs.VERSION }}.tar.gz dist/pwa + - name: Upload Tarball + uses: actions/upload-artifact@v3 + with: + name: build-artifact-${{ steps.get_version.outputs.VERSION }} + path: build-${{ steps.get_version.outputs.VERSION }}.tar.gz