mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2024-12-04 19:27:37 +00:00
Update main.yml
Update push action
This commit is contained in:
parent
8d72e6e293
commit
6e8855d15c
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Build and Deploy Vanilla.js
|
name: Build and Deploy Vanilla.js
|
||||||
env:
|
env:
|
||||||
OUTPUT_PATH: ${{ github.workspace }}/.output
|
OUTPUT_PATH: ${{ github.workspace }}/.output/
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -14,7 +14,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Index
|
- name: Index
|
||||||
run: cp index.html ${{ env.OUTPUT_PATH }}
|
run: |
|
||||||
|
cp index.html favicon.ico manifest.json pwa.js robots.txt ${{ env.OUTPUT_PATH }}
|
||||||
|
cp -r css/ ${{ env.OUTPUT_PATH }}css/
|
||||||
|
cp -r images/ ${{ env.OUTPUT_PATH }}images/
|
||||||
|
cp -r videos/ ${{ env.OUTPUT_PATH }}videos/
|
||||||
|
cp -r js/ ${{ env.OUTPUT_PATH }}js/
|
||||||
|
cp -r slides/ ${{ env.OUTPUT_PATH }}slides/
|
||||||
|
cp -r templates/ ${{ env.OUTPUT_PATH }}templates/
|
||||||
|
cp -r appicons/ ${{ env.OUTPUT_PATH }}appicons/
|
||||||
|
|
||||||
- name: Publish website output
|
- name: Publish website output
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@ -40,5 +48,8 @@ jobs:
|
|||||||
name: website
|
name: website
|
||||||
path: ${{ env.OUTPUT_PATH }}
|
path: ${{ env.OUTPUT_PATH }}
|
||||||
|
|
||||||
|
- name: Fix Base URL
|
||||||
|
run: sed -i "s/base href=\"\/\"/base href=\"\/vanillajs\/\"/g" ${{ env.OUTPUT_PATh }}index.html
|
||||||
|
|
||||||
- name: Deploy to Azure Storage
|
- name: Deploy to Azure Storage
|
||||||
run: az storage blob upload-batch --source ${{ env.OUTPUT_PATH }} --destination \$web/vanillajs --account-name ${STORAGE_NAME}
|
run: az storage blob upload-batch --source ${{ env.OUTPUT_PATH }} --destination \$web/vanillajs --account-name ${STORAGE_NAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user