Skip to content

Commit

Permalink
Update azure-static-web-apps-calm-mushroom-0f7713e03.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolgit authored Aug 1, 2024
1 parent 457be49 commit 19565cc
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Azure Static Web Apps CI/CD
name: deploy to Azure calm-mushroom

on:
push:
Expand All @@ -19,6 +19,21 @@ jobs:
with:
submodules: true
lfs: false

- name: prepare build date in GITHUB_ENV
id: step_build_date_and_time
run: |
echo "build_timestamp=$(date)" >> $GITHUB_ENV
- name: Use the build date from GITHUB_ENV
id: step_replace
# encode connection string with https://dwaves.de/tools/escape/ !!
run: |
build=$(date +%Y.%m.%d).github
echo "build date: ${{ env.build_timestamp }} - $build"
echo "build number: ${{ github.run_number }}"
sed -i "s/__BUILDDATE__/$build/g" index.html
sed -i 's/__BUILDNUMBER__/${{ github.run_number }}/g' index.html
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
Expand Down

0 comments on commit 19565cc

Please sign in to comment.