Skip to content

Commit

Permalink
Upgrade docs GH action (#184)
Browse files Browse the repository at this point in the history
* Bumped node dependencies
* Use legacy hash support
  • Loading branch information
sandervanhooft authored Jun 26, 2023
1 parent 7020478 commit b233a34
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 32 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,27 @@ on:
branches: [main]
paths:
- 'docs/**'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
- name: Checkout
uses: actions/checkout@v3.5.3
with:
persist-credentials: false

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
- name: Install and Build 🔧
run: |
npm install
export NODE_OPTIONS=--openssl-legacy-provider
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4.4.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/.vuepress/dist # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs/.vuepress/dist # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
dry-run: false # Set to true for convenient GitHub action testing
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
build
composer.lock
vendor
coverage
node_modules
package-lock.json
phpunit.xml
vendor
.phpunit.result.cache
.phpunit.cache
.idea
Expand Down
7 changes: 6 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,10 @@ module.exports = {
hostname: "https://www.cashiermollie.com"
},
],
]
],
configureWebpack: {
output: {
hashFunction: "sha256",
},
},
}
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "cashiermollie.com",
"version": "1.0.0",
"description": "Laravel Cashier provides an expressive, fluent interface to subscriptions using Mollie's billing services.",
"main": "index.js",
"scripts": {
"dev": "vuepress dev docs",
"build": "vuepress build docs",
"serve": "npm run dev"
},
"repository": "git@github.com:ciungulete/cashiermollie.com.git",
"author": "Andrei Ciungulete <andrei.ciungulete@andali.ro>",
"license": "MIT",
"dependencies": {
"global": "^4.3.2",
"vuepress": "^1.7.1"
},
"devDependencies": {
"@mr-hope/vuepress-plugin-sitemap": "^1.21.0",
"@vuepress/plugin-pwa": "^1.7.1",
"prettier": "2.1.2",
"vuepress-plugin-seo": "^0.1.4"
}
"name": "cashiermollie.com",
"version": "1.0.0",
"description": "Laravel Cashier provides an expressive, fluent interface to subscriptions using Mollie's billing services.",
"main": "index.js",
"scripts": {
"dev": "vuepress dev docs",
"build": "vuepress build docs",
"serve": "npm run dev"
},
"repository": "git@github.com:mollie/laravel-cashier-mollie.git",
"author": "Sander van Hooft<sander@sandorian.com>",
"license": "MIT",
"dependencies": {
"global": "^4.4",
"vuepress": "^1.7"
},
"devDependencies": {
"@mr-hope/vuepress-plugin-sitemap": "^1.30",
"@vuepress/plugin-pwa": "^1.9",
"prettier": "^2.8",
"vuepress-plugin-seo": "^0.2"
}
}

0 comments on commit b233a34

Please sign in to comment.