Skip to content

Update README.md

Update README.md #33

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
- name: Install Dependencies
run: npm install
- name: Build Angular App
run: npm run build --configuration=production
#run: npm run build:prod
#run: ng build --configuration=production
# - name: Deploy to GitHub Pages
# run: |
# git config --global user.email "tobias.hassebrock@gmail.com"
# git config --global user.name "GitHub Actions"
# git checkout --orphan gh-pages
# git --work-tree=./dist/polity add --all
# git --work-tree=./dist/polity commit -m "GitHub Pages Deployment"
# git push https://$GH_TOKEN_TOBIAS_HASSEBROCK_DEPLOYMENT@github.com/Donnerstagnacht/polity.git HEAD:gh-pages --force
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN_TOBIAS_HASSEBROCK_DEPLOYMENT }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/polity
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_TOBIAS_HASSEBROCK_DEPLOYMENT }}