Skip to content

Commit

Permalink
Updated CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jul 3, 2024
1 parent 5f8f8b5 commit ed89652
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,11 @@ jobs:
mv dist/emulator dist/release/
echo "dwx24.samples.piral.cloud" > dist/release/CNAME
cp dist/release/index.html dist/release/404.html
cd ..
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: webapp
path: apps/spa/dist/release

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: webapp
cd ../..
- name: Deploy Website
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
gh-pages -d "dist/release" -u "github-actions-bot <[email protected]>"
gh-pages -d "apps/spa/dist/release" -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ed89652

Please sign in to comment.