Skip to content

Re-run deploy

Re-run deploy #109

Workflow file for this run

name: Update repo
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install build requirements
run: sudo apt-get -y install lz4
- name: Get commit SHA
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse HEAD)"
- name: Import GPG Keys
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.PALERA1N_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PALERA1N_GPG_PASSPHRASE }}
- name: Build repo
run: |
bash build.sh
- name: Upload files
uses: wangyucode/sftp-upload-action@v1.4.8
with:
host: ${{ secrets.REPO_FTP_HOST }}
port: ${{ secrets.REPO_FTP_PORT }}
username: repo
password: ${{ secrets.REPO_FTP_PASS }}
forceUpload: true
dryRun: false
localDir: 'publish/'
remoteDir: '/files'
- name: Purge Cloudflare cache
run: |
curl -X POST https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE_ID }}/purge_cache -H 'Authorization: Bearer ${{ secrets.CF_API_TOKEN }}' -H 'Content-Type: application/json' --data '{"purge_everything": true}'