Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Implement versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed Jan 11, 2021
1 parent e8392bc commit 93f1713
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/[email protected]
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
npm run check-links
npm run build
cd .vuepress/dist
echo 'docs.cosmwasm.com' > CNAME
mkdir -p ~/output/public;
cp -r .vuepress/public/* ~/output ;
while read -r branch path_prefix; do \
(git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
mkdir -p ~/output/$${path_prefix} ; \
cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \
cp ~/output/$${path_prefix}/index.html ~/output ; \
done < versions ;

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: .vuepress/dist
BRANCH: gh-pages
FOLDER: ~/output/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"homepage": "https://github.com/CosmWasm/docs",
"dependencies": {
"vuepress-theme-cosmos": "1.0.173"
"vuepress-plugin-sitemap": "^2.3.1",
"vuepress-theme-cosmos": "1.0.179"
},
"devDependencies": {
"filehound": "^1.17.4",
Expand Down
2 changes: 2 additions & 0 deletions versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v0.12 v0.12
master master

0 comments on commit 93f1713

Please sign in to comment.