Build Pages #73178
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: Build Pages | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: "*/30 * * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# ref: ${{ github.head_ref }} | |
ref: master | |
- name: Build Cache | |
id: build-cache | |
uses: actions/cache@v2 | |
with: | |
path: cache | |
key: ${{ runner.os }}-build-cache | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Prepare | |
run: | | |
set -ex | |
mkdir -p cache | |
cd cache | |
# https://github.com/helm/helm/releases | |
curl -sfLO https://get.helm.sh/helm-v3.11.0-linux-amd64.tar.gz | |
tar -zxvf helm-v3.11.0-linux-amd64.tar.gz | |
sudo mv linux-amd64/helm /usr/local/bin/helm | |
curl -sfLO https://github.com/moparisthebest/static-curl/releases/download/v7.81.0/curl-amd64 | |
chmod +x curl-amd64 | |
sudo mv curl-amd64 /usr/local/bin/curl | |
#curl -sfLO https://github.com/mikefarah/yq/releases/download/3.3.2/yq_linux_amd64 | |
#chmod +x yq_linux_amd64 | |
#sudo mv yq_linux_amd64 /usr/local/bin/yq | |
cd - | |
git clone --depth=1 --single-branch --branch gh-pages https://github.com/wenerme/charts charts | |
(cd charts && git pull) | |
- name: Building | |
run: | | |
make ci | |
- name: Generate Commit Message | |
run: | | |
echo "##[set-output name=message;]$(cat message)" | |
id: generate_commit_message | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ steps.generate_commit_message.outputs.message }} | |
commit_user_name: Wener Bot | |
commit_user_email: [email protected] | |
commit_author: GitHub Actions <[email protected]> | |
- name: Deploy Pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: charts |