ProductPromotion
Logo

Angular.JS

made by https://0x3d.site

GitHub - k9n-dev/analog-publish-gh-pages: A Github Action for the Deployment of an Analog.js App on Github Pages
A Github Action for the Deployment of an Analog.js App on Github Pages - k9n-dev/analog-publish-gh-pages
Visit Site

GitHub - k9n-dev/analog-publish-gh-pages: A Github Action for the Deployment of an Analog.js App on Github Pages

GitHub - k9n-dev/analog-publish-gh-pages: A Github Action for the Deployment of an Analog.js App on Github Pages

Analog Publish GitHub Pages

CI Check dist/ CodeQL Coverage

Build a static AnalogJS site and deploy it on GitHub Pages.

Versions and Compatibility

Tested with Node 20, Angular ^17.0.0 and AnalogJS 1.0.0-beta.1.

Usage

name: Build and Deploy

on:
  push:
    branches:
      - 'main'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20.x'
      - uses: k9n-dev/[email protected]
        with:
          # Required: token to access / deploy on GitHub Pages
          access-token: ${{ secrets.ACCESS_TOKEN }}
          # Optional: arguments passed to `npm ci`
          install-args: '--legacy-peer-deps'
          # Optional: arguments passed to `npm run build`
          build-args: ''
          # Optional: the directory after build process to deploy (defaults to `dist/analog/public`)
          deploy-dir: 'dist/analog/public'
          # Optional: a specific branch where the static site should be deployed (defaults to `gh-pages`)
          deploy-branch: 'gh-pages' # important: --dry-run (see option below) won't actually deploy the site!
          # Optional: prevent an actual deployment (e. g. for running in branch pipelines)
          dry-run: true

Options (with)

To deploy, you need to provide a personal access-token. This token must be configured as a Repository Secret.

input required default description
package-manager false npm The package manager to be used (npm, yarn, pnpm).
access-token true - A personal access token needed to deploy your site after it has been built.
install-args false - Additional arguments that get passed to the install command of the used package manager (e. g. --legacy-peer-deps).
build-args false - Additional arguments that get passed to build script of your package.json file.
deploy-dir false dist/analog/public The path to the directory to deploy.
deploy-branch false gh-pages The branch where the static site should be deployed.
dry-run false false Don't actually deploy if truthy.

Assumptions

Build command

The build script of your package.json is executed by this action. Additional arguments can be passed by setting build-args.

CNAME file

You have a custom domain you would like to use? Fancy! 😎 This Action's got you covered! Assuming you have already set up your DNS provider as defined in the GitHub Pages docs, all we need next is a CNAME file at the root of your project with the domain you would like to use. For example:

example.com

.nojekyll file

AnalogJS creates files starting with an underscore (_) during the build process. By default GitHub Pages assumes a Jekyll project is being published. This assumption comes with the fact, all files starting with _ are being ignored. To fix this, the actions adds a .nojekyll file to the destination directory and places it in the root on the gh-pages branch.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory