Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Feb 4, 2024
1 parent 4abe5db commit e8d61ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 38 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ jobs:
- uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.14.2'
cache: yarn
node-version: '20.9.0'

- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.5'
ruby-version: '3.3.0'
bundler-cache: true

- run: yarn install --frozen-lockfile
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Deploy
on:
push:
branches:
master
branches: master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: "Notes (read me) ๐Ÿ“–"
- name: 'Notes (read me) ๐Ÿ“–'
run: |
# About this workflow:
# This workflow generates GitHub pages, but IT IS NOT USED. It is
Expand All @@ -20,36 +19,35 @@ jobs:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.14.2'
cache: yarn
node-version: '20.9.0'

- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.5'
ruby-version: '3.3.0'
bundler-cache: true

- run: yarn install --frozen-lockfile
- run: yarn build

- name: "Deploy to gh-pages ๐Ÿš€"
- name: 'Deploy to gh-pages ๐Ÿš€'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _site

- name: "Deploy to mirror ๐Ÿš€"
- name: 'Deploy to mirror ๐Ÿš€'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
REPOSITORY_NAME: rstacruz/devhints-mirror
BRANCH: gh-pages
FOLDER: _site

- name: "Notify Slack ๐Ÿ“ข"
- name: 'Notify Slack ๐Ÿ“ข'
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_DEPLOY_WEBHOOK_URL }}
24 changes: 0 additions & 24 deletions .github/workflows/rebase.yml

This file was deleted.

0 comments on commit e8d61ab

Please sign in to comment.