diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d26695cd..483e86e1 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -35,21 +35,15 @@ jobs: path: www/main deploy: needs: build-and-test - runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' steps: - - name: Download www - uses: actions/download-artifact@v2 - with: - name: www - path: cmsc430 - - name: Deploy to web - uses: plum-umd/github-actions-rsync@master - with: - RSYNC_OPTIONS: -rvzp - RSYNC_TARGET: /fs/www/class/fall2022/ - RSYNC_SOURCE: cmsc430 - env: - SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}} - SSH_USERNAME: ${{secrets.SSH_USERNAME}} - SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}} + - name: Deploy to GitHub pages + id: deployment + uses: actions/deploy-pages@v4