diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..382b626 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Build and Deploy + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + steps: + - uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: "yarn" + - run: yarn install --ignore-engines + - run: yarn build + - name: Upload pages artifacts + # https://github.com/actions/upload-pages-artifact + uses: actions/upload-pages-artifact@v1 + with: + path: "public/" + + - name: Deploy to GitHub Pages + if: github.ref == 'refs/heads/master' + # https://github.com/actions/deploy-pages + uses: actions/deploy-pages@v2.0.0 diff --git a/README.md b/README.md index 06f145f..5e16e32 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ # DropOut + +[![Build and Deploy](https://github.com/yui540/DropOut/actions/workflows/build.yml/badge.svg)](https://github.com/yui540/DropOut/actions/workflows/build.yml) + 「DropOut」は、yui540のポートフォリオサイトのversion_6.0.0です。 『僕は魔法少女-----そう思っていた』 -🎉 [magical-girl.site](https://magical-girl.site) 🎉 +🎉 [Try It Online](https://yui540.github.io/DropOut/) 🎉 ![1](./res/1.png) diff --git a/package.json b/package.json index eb39ffb..b033445 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "dotenv": "^5.0.1", "extract-text-webpack-plugin": "^4.0.0-beta.0", "http-server": "^0.11.1", - "node-sass": "^4.8.3", + "node-sass": "npm:sass", "node-sass-glob-importer": "^5.1.1", "riot": "^3.9.0", "riot-hot-reload": "^1.0.0", diff --git a/public/index.html b/public/index.html index f625c70..d4a2ee1 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@ - 魔法少女サイト - DropOut - + - - + + - - + - - + + @@ -407,7 +406,7 @@
- + でシェアする
@@ -446,7 +445,7 @@ - + - + - +