diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1b3dfbd..f314c6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,9 @@ on: jobs: deploy: + permissions: + contents: write + runs-on: ubuntu-latest env: ruby-version: 2.5 diff --git a/.github/workflows/dev_deploy.yml b/.github/workflows/dev_deploy.yml index 9262098..198640a 100644 --- a/.github/workflows/dev_deploy.yml +++ b/.github/workflows/dev_deploy.yml @@ -5,7 +5,25 @@ on: branches: [ 'dev' ] jobs: - deploy: + push_to_registry: + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + - name: Push to Docker Hub + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_ACCESS_KEY }} + repository: slatedocs/slate + tag_with_ref: true + + deploy_gh: + permissions: + contents: write + runs-on: ubuntu-latest env: ruby-version: 2.5 @@ -33,14 +51,6 @@ jobs: - run: bundle exec middleman build - - name: Push to Docker Hub - uses: docker/build-push-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_ACCESS_KEY }} - repository: slatedocs/slate - tag_with_ref: true - - name: Deploy uses: peaceiris/actions-gh-pages@v3.7.0-8 with: