Skip to content

Commit

Permalink
Update gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
mizunashi-mana committed Nov 26, 2023
1 parent f051027 commit 539191f
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

-
name: Login to GitHub Packages
uses: docker/login-action@v1
- name: Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Pull required images
run: |
docker-compose pull
docker compose pull
- name: Run build
run: |
docker-compose build
docker compose build
- name: Run test
run: |
docker-compose run builder
docker compose run builder
deploy:
needs: test
Expand All @@ -43,35 +42,32 @@ jobs:
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

-
name: Login to GitHub Packages
uses: docker/login-action@v1
- name: Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Pull required images
run: |
docker-compose pull
docker compose pull
- name: Run build
run: |
docker-compose build
docker compose build
- name: Run test
run: |
docker-compose run builder
docker compose run builder
-
name: Make public
- name: Make public
run: |
cp main.pdf public/
-
name: Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 539191f

Please sign in to comment.