Skip to content

Commit

Permalink
ci: add github action for cd
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorbo committed Sep 11, 2024
1 parent 7a34633 commit 9101657
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 143 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,34 @@ jobs:
- run: npm run lint
- run: npm audit --omit=dev
continue-on-error: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: single_page_application
path: dist
create-release:
runs-on: ubuntu-latest
# if: github.ref_name == 'main'
needs: [ lint_audit, build ]
steps:
- uses: actions/checkout@v4
- uses: cperezabo/[email protected]
- run: echo "VERSION=v$(git mkver next --format '{Docker}')" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: single_page_application
- run: (cd dist && zip -r ../living-images-viewer.zip . )
- uses: ncipollo/release-action@v1
with:
artifacts: "living-images-viewer.zip"
tag: '${{ env.VERSION }}''
generateReleaseNotes: 'true'
148 changes: 5 additions & 143 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9101657

Please sign in to comment.