[READ-ONLY] Mirror of https://github.com/andrioid/jamstack-example. https://andri.dk/blog/2021/deploy-static-websites-anywhere
0

Configure Feed

Select the types of activity you want to include in your feed.

not done, but testing

+19 -12
+19 -12
.github/workflows/deploy-anywhere.yaml
··· 30 30 # Copy the build assets from the container and cleanup 31 31 - run: CONTAINER_ID=$(docker create ghcr.io/${GITHUB_REPOSITORY}/${IMG_NAME}:latest /bin/sh) && docker cp ${CONTAINER_ID}:/workspace/public . && docker rm ${CONTAINER_ID} 32 32 - run: ls -alh public 33 - # deploy: 34 - # needs: remote-build 35 - # runs-on: ubuntu-latest 36 - # services: 37 - # assets: 38 - # image: ghcr.io/${{ github.repository }}/${{ github.workflow }} 39 - # volumes: 40 - # - /tmp/assets:/workspace 41 - # env: 42 - # IMG_NAME: ${{ github.workflow }} 43 - # steps: 44 - # - run: ls -alh /tmp/assets 33 + - uses: actions/upload-artifact@v2 34 + with: 35 + name: public 36 + path: public/ 37 + 38 + deploy-spaces: 39 + needs: remote-build 40 + runs-on: ubuntu-latest 41 + env: 42 + RCLONE_CONFIG_SPACES_TYPE: s3 43 + RCLONE_CONFIG_SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_KEY_ID }} 44 + RCLONE_CONFIG_SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }} 45 + RCLONE_CONFIG_SPACES_ENDPOINT: fra1.digitaloceanspaces.com # yours may differ 46 + steps: 47 + - uses: NiceLabs/rclone-action@v1 48 + - uses: actions/download-artifact@v2 49 + with: 50 + name: public 51 + - run: ls -alh /public