From 6e8855d15c0ef81bffeecaaf209f7ff727084cb3 Mon Sep 17 00:00:00 2001 From: Jeremy Likness Date: Wed, 29 Jan 2020 13:27:36 -0800 Subject: [PATCH 1/3] Update main.yml Update push action --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0989a1..80806a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ name: Build and Deploy Vanilla.js env: - OUTPUT_PATH: ${{ github.workspace }}/.output + OUTPUT_PATH: ${{ github.workspace }}/.output/ on: push: @@ -14,7 +14,15 @@ jobs: - uses: actions/checkout@v1 - 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 uses: actions/upload-artifact@v1 @@ -40,5 +48,8 @@ jobs: name: website 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 run: az storage blob upload-batch --source ${{ env.OUTPUT_PATH }} --destination \$web/vanillajs --account-name ${STORAGE_NAME} From 7f0ad65727c309c6fb56c2d9bd7323b4d8059c94 Mon Sep 17 00:00:00 2001 From: Jeremy Likness Date: Wed, 29 Jan 2020 13:29:37 -0800 Subject: [PATCH 2/3] Update main.yml create output directory --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80806a5..e722323 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,7 @@ jobs: - name: Index run: | + mkdir ${{ env.OUTPUT_PATH }} 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/ From 132105e58739126985f9bac6252232aa0e45a849 Mon Sep 17 00:00:00 2001 From: Jeremy Likness Date: Wed, 29 Jan 2020 13:31:49 -0800 Subject: [PATCH 3/3] Update main.yml Fix spelling of environment name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e722323..9a23c08 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: path: ${{ env.OUTPUT_PATH }} - name: Fix Base URL - run: sed -i "s/base href=\"\/\"/base href=\"\/vanillajs\/\"/g" ${{ env.OUTPUT_PATh }}index.html + run: sed -i "s/base href=\"\/\"/base href=\"\/vanillajs\/\"/g" ${{ env.OUTPUT_PATH }}index.html - name: Deploy to Azure Storage run: az storage blob upload-batch --source ${{ env.OUTPUT_PATH }} --destination \$web/vanillajs --account-name ${STORAGE_NAME}