Skip to content

The Action does not update content on GitHub pages #81

Open
@Kenya-West

Description

@Kenya-West

Here's my playbook:

main.yml

name: Build and Deploy
on:
  push:
    branches:
      - master
jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Build and deploy Angular app using external action
      uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.4.0 ## replace by latest version without it you will see Expected format {org}/{repo}[/path]@ref. Actual 'AhsanAyaz/angular-deploy-gh-pages-actions',Input string was not in a correct format.
      with:
        github_access_token: ${{ secrets.GITHUB_TOKEN }} # see the Configuration section for how you can create secrets
        build_configuration: production # The build environment for the app. please look configurations in your angular.json
        base_href: /<PROJECT>/   # make sure this corresponds to https://<your_username>.github.io/<base_href>/
        deploy_branch: gh-pages # The branch the action should deploy to.
        angular_dist_build_folder: dist/<PROJECT>/browser # The folder where your project is supposed to be after running ng build by the action.

permissions:
  contents: write # Allow write permission to GITHUB_TOKEN to commit to deploy branch.

Logs are correct:

Run AhsanAyaz/angular-deploy-gh-pages-actions@v1.4.0

Installing dependencies 🏃

npm warn deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead

added 1051 packages, and audited 1052 packages in 17s

122 packages are looking for funding
  run `npm fund` for details

22 vulnerabilities (1 low, 9 moderate, 12 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Creating ng build 💪

- Building...

Warning: G] 2 rules skipped due to selector errors:
  .form-floating>~label -> Did not expect successive traversals.
  .form-floating>~label -> Did not expect successive traversals.


Initial Chunk Files   | Names         |  Raw Size | Estimated Transfer Size
main-UKXNFH4B.js      | main          | 491.35 kB |               112.03 kB
styles-PRFF6WQC.css   | styles        | 341.94 kB |                35.76 kB
scripts-WHMWRBVB.js   | scripts       | 107.00 kB |                33.02 kB
polyfills-LZBJRJJE.js | polyfills     |  32.69 kB |                10.59 kB

                      | Initial Total | 972.99 kB |               191.40 kB

Application bundle generation complete. [16.665 seconds]

Successfully copied dist/<PROJECT>/browser/index.html to dist/<PROJECT>/browser/404.html!


Deploying build ..💪

Checking configuration and starting deployment...🚦
Deploying using Access Token... 🔑
Configuring git...
Git configured... 🔧
Starting to commit changes...
Creating the gh-pages branch...
Created the gh-pages branch... 🔧
Changes committed to the gh-pages branch... 📦
Running post deployment cleanup jobs...
Completed Deployment Successfully! ✅

Deployed build successfully! 🎉🎉🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions