Skip to content

Commit

Permalink
test release
Browse files Browse the repository at this point in the history
  • Loading branch information
hschell-cortado committed Jun 29, 2022
1 parent c50334c commit 7914d96
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Node.js CI

env:
DIST_PATH: 'dist'
ARTIFACT_NAME: 'ezeep Blue office-add-in'
ARTIFACT_NAME: 'ezeep-msoffice-addin'
MODULE_VERSION: '1.0.${{ github.run_number }}' # update MAJOR and MINOR version here
PRERELEASE: false

on:
push:
Expand Down Expand Up @@ -35,18 +36,34 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: '${{ env.DIST_PATH }}'

- name: Zip npm artifact for release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
directory: ${{ env.DIST_PATH }}
path: '.'
filename: ${{ env.ARTIFACT_NAME }}

- name: Create release with npm package
uses: ncipollo/release-action@v1
with:
tag: "${{ env.MODULE_VERSION }}"
prerelease: ${{ env.PRERELEASE }}
artifacts: "${{ env.DIST_PATH }}/${{ env.ARTIFACT_NAME }}"
token: ${{ secrets.GITHUB_TOKEN }}

cdn-upload:
environment: Production
needs: build
runs-on: ubuntu-latest
steps:

- name: Download npm artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: "artifacts/v${{ env.MODULE_VERSION }}"

- name: list directory
run: |
ls -lR
Expand Down

0 comments on commit 7914d96

Please sign in to comment.