diff --git a/.github/workflows/template-main.yml b/.github/workflows/template-main.yml index fc0f03b..6028bb3 100644 --- a/.github/workflows/template-main.yml +++ b/.github/workflows/template-main.yml @@ -10,8 +10,9 @@ env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - SECRETS_VARS: ${{ toJson(secrets) }} NG_CLI_ANALYTICS: "ci" + GH_URL: ${{ secrets.GH_API_URL }} + GITHUB_URL: ${{ secrets.GH_API_URL }} permissions: contents: read # for checkout @@ -53,3 +54,8 @@ jobs: run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D - name: release run: npx semantic-release@21.0.2 + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: node-app + path: ./Angular/Konex/dist diff --git a/.releaserc b/.releaserc index 0bcd3fa..85cdcd1 100644 --- a/.releaserc +++ b/.releaserc @@ -5,7 +5,10 @@ "@semantic-release/release-notes-generator", [ "@semantic-release/github", { - "assets": ["SpringBoot/Konex/target/**"] + "assets": [ + { "path": "Angular/Konex/dist/*", "label": "CSS distribution" }, + { "path": "SpringBoot/Konex/target/*", "label": "JS distribution" } + ] } ] ]