Skip to content

Commit

Permalink
TMP trigger deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Oct 25, 2024
1 parent e04da59 commit e1ecdc7
Showing 1 changed file with 1 addition and 52 deletions.
53 changes: 1 addition & 52 deletions .github/workflows/publish-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,9 @@
name: publish-deploy
on:
push:
branches: [develop]
tags: [v*]
branches: [NAN-fix-docker-tharvik]

jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
registry-url: "https://registry.npmjs.org"
scope: "@epfml"
- run: npm ci
- run: npm --workspace=discojs{,-node,-web} version prerelease --preid=p`date +%Y%m%d%H%M%S`
if: github.ref_type == 'branch'
- run: npm --workspace=discojs{,-node,-web} run build
- run: npm --workspace=discojs{,-node,-web} publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

build-webapp:
if: github.ref_type == 'branch'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm --workspace={discojs,discojs-web,webapp} run build
- uses: actions/upload-pages-artifact@v3
with:
path: webapp/dist
deploy-pages:
needs: build-webapp
if: github.ref_type == 'branch'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4

publish-github-container:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit e1ecdc7

Please sign in to comment.