We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae5184 commit b2aa87eCopy full SHA for b2aa87e
.github/workflows/deployment.yml
@@ -0,0 +1,24 @@
1
+name: Deploy Portfolio
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ update-script:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout Repository
13
+ uses: actions/checkout@v2
14
15
+ - name: Replace App Script ID in script.js
16
+ run: |
17
+ APP_SCRIPT="${{ secrets.APP_SCRIPT }}"
18
+ sed -i "s|AKfycby9S-NaNoeaITbVzXAmRm0bxUhbHhTNChxIaRaImckoZJyotr0N7iOZUoJHRnMGEl1GXQ|$APP_SCRIPT|g" resources/script.js
19
20
+ - name: Deploy to GitHub Pages
21
+ uses: peaceiris/actions-gh-pages@v3
22
+ with:
23
+ github_token: ${{ secrets.GITHUB_TOKEN }}
24
+ publish_dir: ./ # Change this if your index.html is in a different directory
0 commit comments