Skip to content

Commit

Permalink
[ci] ipfs workflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
apple-juice committed Nov 12, 2024
1 parent 9bf8b96 commit a2d6276
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
37 changes: 16 additions & 21 deletions .github/workflows/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,22 @@ on:
- "master"
jobs:
build-and-deploy-github-pages:
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
with:
persist-credentials: false
uses: actions/checkout@v4

- name: Cache
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- name: Setup Node.js
uses: actions/setup-node@v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: '16.13.2'
cache: 'npm'

- name: Install
run: npm install
run: npm ci

- name: Build GitHub Pages
env:
Expand All @@ -35,15 +30,15 @@ jobs:

- name: Deploy GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
uses: JamesIves/github-pages-deploy-action@v4
with:
target_branch: gh-pages
build_dir: build
fqdn: cryptolasereyes.com
branch: gh-pages
folder: build
clean: true
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Contributors
uses: akhilmhdh/contributors-readme-action@v2.1.1
uses: akhilmhdh/contributors-readme-action@v2.3.6
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ jobs:
with:
message: "[IPFS](https://ipfs.io/ipfs/${{ steps.ipfs.outputs.hash }}) 🌎"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
id-token: write
contents: read
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"use-image": "^1.0.7"
},
"scripts": {
"start": "NODE_OPTIONS=--openssl-legacy-provider react-scripts start",
"build": "NODE_OPTIONS=--openssl-legacy-provider react-scripts build"
"start": "react-scripts start",
"build": "react-scripts build"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit a2d6276

Please sign in to comment.