Update release.yml #8
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: Deploy | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: "Build" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install ruby | |
| run: sudo apt install ruby-full build-essential zlib1g-dev rclone s4cmd | |
| - name: Install jekyll | |
| run: sudo gem install jekyll bundler | |
| - name: Run build | |
| run: jekyll build | |
| - name: Save results as artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: site-build | |
| path: _site/ | |
| - name: configure | |
| run: rclone config create my-remote webdav url ${{secrets.WEBDAV_URL}} vendor other user '${{secrets.WEBDAV_USER}}' pass '${{secrets.WEBDAV_PASSWORD}}' | |
| - name: deploy | |
| run: "rclone -I sync _site my-remote:" | |
| - name: deploy2 | |
| env: | |
| S3_ACCESS_KEY: ${{secrets.S3_ACCESS_KEY}} | |
| S3_SECRET_KEY: ${{secrets.S3_SECRET_KEY}} | |
| run: s4cmd --endpoint-url=${{secrets.S3_ENDPOINT_URL}} dsync -s -r --delete-removed _site/ s3://${{secrets.S3_BUCKET}}/ | |