Add When companies code with Pharo success #225
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: publish | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
generate: | |
name: "Generate site" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Generate static HTML" | |
uses: estebanlm/foliage-action@main | |
with: | |
source: './site' | |
target: 'generated' | |
- name: "Upload to server" | |
uses: up9cloud/[email protected] | |
env: | |
KEY: ${{secrets.SERVER_SSH_KEY}} | |
USER: ${{secrets.REMOTE_USER}} | |
HOST: ${{secrets.REMOTE_HOST}} | |
TARGET: ${{secrets.REMOTE_TARGET}} | |
SOURCE: generated/ | |
POST_SCRIPT: "cd ${{secrets.REMOTE_TARGET}} && ln -s . web" |