docs(archive): update feature toggle link in CI/CD playbook #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main CI | |
on: | |
push: | |
branches: | |
- main | |
env: | |
ARCHIVE_BUILD_PATH: apps/archive/build | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
token: ${{ secrets.ACTIONS_PTA }} | |
- name: Git set author name | |
run: git config --global user.name "runespoorengineering" | |
- name: Git set author email | |
run: git config --global user.email "runespoorengineering@gmail.com" | |
- name: Use Node.js/20.9.0 | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: ${{ secrets.NPM_REGISTRY_URL }} | |
always-auth: true | |
node-version: 20.9.0 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Rush Verify Change Logs | |
run: node common/scripts/install-run-rush.js change --verify | |
- name: Rush List | |
run: node common/scripts/install-run-rush.js list --version | |
- name: Rush Install | |
run: node common/scripts/install-run-rush.js install | |
- name: Rush Lint | |
run: node common/scripts/install-run-rush.js lint | |
- name: Rush Test | |
run: node common/scripts/install-run-rush.js test | |
- name: Rush Rebuild | |
run: node common/scripts/install-run-rush.js rebuild --verbose | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: archive | |
path: ${{ env.ARCHIVE_BUILD_PATH }} | |
- name: Rush Publish | |
run: node common/scripts/install-run-rush.js publish --apply --target-branch ${{ github.event.repository.default_branch }} --publish --registry ${{ secrets.NPM_REGISTRY_URL }} --npm-auth-token ${{ secrets.NPM_TOKEN }} --add-commit-details | |
deploy-archive: | |
needs: ci | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure Github Pages | |
uses: actions/configure-pages@v4 | |
- name: Download archive Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: archive | |
path: ${{ env.ARCHIVE_BUILD_PATH }} | |
- name: Upload archive artifact as GitHub Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ${{ env.ARCHIVE_BUILD_PATH }} | |
- name: Deploy archive to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |