Skip to content

Commit

Permalink
⬆️ Upgrade action/ actions
Browse files Browse the repository at this point in the history
- 🐛 Fix the bug with publish that causes the uploaded artifacts to
  not be downloaded.
- 🐛 Remove "pull" ci for tests. This was supposed to be a breaking
  change in the migration to 5.x.y update, so doing this now.
  • Loading branch information
kammce committed Mar 1, 2024
1 parent e5aaed1 commit 70f8901
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/demo_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version != '' }}
with:
submodules: true
repository: ${{ inputs.repo }}
ref: ${{ inputs.version }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version == '' }}
with:
submodules: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version != '' }}
with:
submodules: true
repository: ${{ inputs.repo }}
ref: ${{ inputs.version }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version == '' }}
with:
submodules: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version != '' }}
with:
submodules: true
repository: ${{ inputs.repo }}
ref: ${{ inputs.version }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version == '' }}
with:
submodules: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version != '' }}
with:
submodules: true
repository: ${{ inputs.repo }}
ref: ${{ inputs.version }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version == '' }}
with:
submodules: true
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,29 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
submodules: true
repository: ${{ inputs.repo }}

- name: 📥 Install Conan
run: pip install conan

- run: mkdir docs
- uses: actions/download-artifact@master
- uses: actions/[email protected]
with:
path: docs

- name: Generate Latest Version Badge
run: wget "https://img.shields.io/badge/Latest%20Version-$(conan inspect . | grep version | cut -c 10- | sed s/-/~/ )-green" -O docs/latest_version.svg

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v4.0.0

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3.0.1
with:
path: "docs"

- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4.0.4
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version != '' }}
with:
submodules: true
repository: ${{ inputs.repo }}
ref: ${{ inputs.version }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
if: ${{ inputs.version == '' }}
with:
submodules: true
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
grep -Eo 'https://img.shields.io/badge/[^)]*')
-O build/coverage/coverage.svg

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4.1.3
if: github.ref == 'refs/heads/main' && github.repository == inputs.repo
with:
name: coverage
Expand Down

0 comments on commit 70f8901

Please sign in to comment.