updating github actions to upload site to fifthtry.com #2
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: Upload lets-de-template to FifthTry | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - lets-de-template.fifthtry.site/** | |
| - .github/workflows/template-to-ft.yml | |
| jobs: | |
| upload-to-fifthtry: | |
| runs-on: ubuntu-latest | |
| env: | |
| FIFTHTRY_SITE_WRITE_TOKEN: ${{ secrets.FT_LETS_DE_TEMPLATE }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - run: sh -c "$(curl -fsSL https://fastn.com/install.sh)" | |
| # let's publish this only after there is some stability on the schema | |
| - name: Upload to FifthTry using fastn | |
| run: cd lets-de-template.fifthtry.site/ && fastn upload lets-de-template |