From 2b22588006202137118f205a7cb15913891e7923 Mon Sep 17 00:00:00 2001 From: Danny Koppenhagen Date: Thu, 7 Dec 2023 21:46:54 +0100 Subject: [PATCH] ci: deploy on github pages --- .github/workflows/angular-deploy.yml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/angular-deploy.yml diff --git a/.github/workflows/angular-deploy.yml b/.github/workflows/angular-deploy.yml new file mode 100644 index 0000000..4ebac1b --- /dev/null +++ b/.github/workflows/angular-deploy.yml @@ -0,0 +1,34 @@ +name: Deploy Angular App to GitHub Pages + +permissions: + contents: write + +on: + push: + branches: + - main # Change this to your main branch + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set Up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install Dependencies + run: npm ci + + - name: Build Angular App + run: npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist/a11y-demo/browser # Change this to your Angular app's build output directory