Update GitHub Actions

This commit is contained in:
Sijawusz Pur Rahnama 2022-12-21 16:08:16 +01:00
parent 2cfbe97b6d
commit e76de37b7d
2 changed files with 11 additions and 16 deletions

View file

@ -17,17 +17,15 @@ jobs:
steps: steps:
- name: Install Crystal - name: Install Crystal
uses: oprypin/install-crystal@v1 uses: crystal-lang/install-crystal@v1
with: with:
crystal: ${{ matrix.crystal }} crystal: ${{ matrix.crystal }}
- name: Download source - name: Download source
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: shards install run: shards install
env:
SHARDS_OPTS: --ignore-crystal-version
- name: Run specs - name: Run specs
run: make test run: make test

View file

@ -9,20 +9,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Inject slug/short variables - name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x uses: rlespinasse/github-slug-action@v4
- name: Install Crystal - name: Install Crystal
uses: oprypin/install-crystal@v1 uses: crystal-lang/install-crystal@v1
- name: Download source - name: Download source
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
- name: Install dependencies - name: Install dependencies
run: shards install run: shards install
env:
SHARDS_OPTS: --ignore-crystal-version
- name: Build docs - name: Build docs
run: | run: |
@ -30,7 +28,7 @@ jobs:
crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}" crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: docs name: docs
path: docs path: docs
@ -40,15 +38,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download artifacts - name: Download artifacts
uses: actions/download-artifact@v2 uses: actions/download-artifact@v3
with: with:
name: docs name: docs
path: docs path: docs
- name: Deploy docs 🚀 - name: Deploy docs 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@4
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages
BRANCH: gh-pages folder: docs
FOLDER: docs clean: true
CLEAN: true