File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - name : Checkout 🛎️
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v3
2020 - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v1
21+ uses : actions/setup-node@v3
2222 with :
2323 node-version : ${{ matrix.node-version }}
2424 - name : Install and Build components 🔧
@@ -29,12 +29,14 @@ jobs:
2929 echo TWITTER_USER_NAME=${{ secrets.TWITTER_USER_NAME }} >> .env
3030 echo YOUTUBE_API_KEY=${{ secrets.YOUTUBE_API_KEY }} >> .env
3131 echo YOUTUBE_PLAYLIST_ID=${{ secrets.YOUTUBE_PLAYLIST_ID }} >> .env
32+ echo MASTODON_ACCESS_TOKEN=${{ secrets.MASTODON_ACCESS_TOKEN }} >> .env
33+ echo MASTODON_ID=${{ secrets.MASTODON_ID }} >> .env
3234 npm ci
3335 npx next build && npx next export
3436 touch out/.nojekyll
3537 # CI: false # true -> fails on warning
3638 - name : Deploy 🚀
37- uses : JamesIves/github-pages-deploy-action@4.0.0
39+ uses : JamesIves/github-pages-deploy-action@v4
3840 with :
3941 token : ${{ secrets.ACCESS_TOKEN }} # Access token from the Prod repo, set in Settings > Secrets
4042 repository-name : code-star/code-star.github.io
Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - name : Checkout 🛎️
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v3
2020 - name : Use Node.js ${{ matrix.node-version }}
21- uses : actions/setup-node@v1
21+ uses : actions/setup-node@v3
2222 with :
2323 node-version : ${{ matrix.node-version }}
2424 - name : Install and Build components 🔧
@@ -29,13 +29,15 @@ jobs:
2929 echo TWITTER_USER_NAME=${{ secrets.TWITTER_USER_NAME }} >> .env
3030 echo YOUTUBE_API_KEY=${{ secrets.YOUTUBE_API_KEY }} >> .env
3131 echo YOUTUBE_PLAYLIST_ID=${{ secrets.YOUTUBE_PLAYLIST_ID }} >> .env
32+ echo MASTODON_ACCESS_TOKEN=${{ secrets.MASTODON_ACCESS_TOKEN }} >> .env
33+ echo MASTODON_ID=${{ secrets.MASTODON_ID }} >> .env
3234 npm ci
3335 echo "{ \"basePath\": \"/codestar-website-next\" }" > config.json
3436 npx next build && npx next export
3537 touch out/.nojekyll
3638 # CI: false # true -> fails on warning
3739 - name : Deploy 🚀
38- uses : JamesIves/github-pages-deploy-action@4.0.0
40+ uses : JamesIves/github-pages-deploy-action@v4
3941 with :
4042 token : ${{ secrets.GITHUB_TOKEN }}
4143 branch : gh-pages # The branch the action should deploy to.
Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ Merges to the `production` branch are automatically deployed to the production e
3535
3636Settings for Github Actions:
3737
38- - under github.com > settings > security/secrets > actions > add new repository secret:
38+ - Under github.com > settings > security/secrets > actions > add new repository secret:
3939 - TWITTER_ACCESS_TOKEN
4040 - TWITTER_USER_NAME
4141 - YOUTUBE_API_KEY
4242 - YOUTUBE_PLAYLIST_ID
4343 - MASTODON_ACCESS_TOKEN
4444 - MASTODON_ID
45+ - Also make sure a mapping exists for each key in test.yml and prod.yml
You can’t perform that action at this time.
0 commit comments