Skip to content

v0.22.0

v0.22.0 #51

Workflow file for this run

name: Publish fuelup-init.sh
on:
release:
types: [published]
env:
FUELUP_INIT_DIR: ./fuelup-init.sh.d/
FUELUP_VERSION_DIR: ./fuelup-version.d/
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
deploy:
needs: cancel-previous-runs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Copy fuelup-init.sh
run: |
mkdir -p ${{ env.FUELUP_INIT_DIR }}
cp fuelup-init.sh ${{ env.FUELUP_INIT_DIR }}
cp fuelup-init.sh ${{ env.FUELUP_INIT_DIR }}/index.html
- name: Deploy latest fuelup init
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: ${{ env.FUELUP_INIT_DIR }}
destination_dir: ./
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Get latest tag and copy into fuelup-version
run: |
mkdir -p ${{ env.FUELUP_VERSION_DIR }}
FUELUP_VERSION="${GITHUB_REF#refs/tags/}"
# trim v from tag prefix
FUELUP_VERSION="${FUELUP_VERSION#v}"
echo $FUELUP_VERSION >> fuelup-version
cp fuelup-version ${{ env.FUELUP_VERSION_DIR }}
- name: Deploy latest fuelup version
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: ${{ env.FUELUP_VERSION_DIR }}
destination_dir: ./