Added approval date in charter document #55
This file contains hidden or 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: Deploy AAIF Standards Portal to GitHub Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| # - name: Install landscape2 | |
| # run: | | |
| # curl --proto '=https' --tlsv1.2 -LsSf https://github.com/cncf/landscape2/releases/download/v1.1.0/landscape2-installer.sh | sh | |
| # echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
| # - name: Build CNCF Landscape 2 | |
| # run: | | |
| # cd landscape | |
| # landscape2 build \ | |
| # --data-file landscape.yml \ | |
| # --settings-file settings.yml \ | |
| # --logos-path logos \ | |
| # --output-dir out | |
| # cd .. | |
| - name: Assemble Portal Distribution | |
| run: | | |
| mkdir -p dist/landscape/static | |
| # # Copy landscape2 static export to dist/landscape | |
| # cp -r landscape/out/* dist/landscape/ | |
| # # Copy static backup parser to dist/landscape/static | |
| # cp -r landscape/static/* dist/landscape/static/ | |
| # Copy static backup parser to dist/landscape/ | |
| cp -r landscape/static/* dist/landscape/ | |
| cp -r landscape/landscape.yml dist/landscape/ | |
| # Copy taxonomy explorer to dist/taxonomy | |
| cp -r taxonomy dist/ | |
| # Copy master portal landing page to dist/ | |
| cp index.html dist/ | |
| # Generate build timestamp in PDT and inject it into dist/index.html | |
| CURRENT_TIME=$(TZ="America/Los_Angeles" date +"%m/%d/%Y %I:%M%P") | |
| echo "Generated build timestamp: $CURRENT_TIME" | |
| sed -i "s|BUILD_TIMESTAMP|$CURRENT_TIME|g" dist/index.html | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # Upload the assembled distribution directory | |
| path: './dist' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |