Skip to content

Commit

Permalink
👷 fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
qd-qd committed May 8, 2024
1 parent 36bdb1c commit 41662e2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
1 change: 0 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: "actions/checkout@v3"
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down Expand Up @@ -47,7 +46,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Create Release
id: create_release
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
# TODO: YOU MUST CONFIGURE THIS TOKEN BY OURSEFL. CHECK THE README FOR MORE INFORMATION.
repo_token: "${{ secrets.RELEASE_TOKEN }}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false

deploy-doc:
Expand All @@ -37,16 +32,32 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Build the documentation
run: forge doc && forge doc --build
run: make doc

- name: Deploy the documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/book
branch: gh-pages

publish:
needs: ["release"]
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Set up Python3
uses: actions/setup-python@v4
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SMOOTH_QDQD_PAT_RIVATE_REPOSITORY }}

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down

0 comments on commit 41662e2

Please sign in to comment.