Skip to content

Dev #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open

Dev #91

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
67bdfa9
Create main.yml
ankit8389 Oct 6, 2023
3154ea5
Update main.yml
ankit8389 Oct 6, 2023
4257448
Update main.yml
ankit8389 Oct 6, 2023
f9b508b
Update main.yml
ankit8389 Oct 9, 2023
b3d6196
Update main.yml
ankit8389 Oct 9, 2023
a315ef5
Update main.yml
ankit8389 Oct 9, 2023
e9b998f
Update main.yml
ankit8389 Oct 9, 2023
13e6d5f
Update main.yml
ankit8389 Oct 9, 2023
104f506
Update main.yml
ankit8389 Oct 9, 2023
4dd25c9
Update main.yml
ankit8389 Oct 9, 2023
6143c35
Update main.yml
ankit8389 Oct 9, 2023
519a320
Update main.yml
ankit8389 Oct 11, 2023
5f49002
Update ci.yml
ankit8389 Oct 11, 2023
adff087
Update main.yml
ankit8389 Oct 11, 2023
1ef02b1
Update ci.yml
ankit8389 Oct 11, 2023
c42fbff
Update ci.yml
ankit8389 Oct 11, 2023
5b3484d
Update ci.yml
ankit8389 Oct 11, 2023
9d4f944
Update ci.yml
ankit8389 Oct 11, 2023
570fbe9
Update ci.yml
ankit8389 Oct 11, 2023
8f3fa4f
Update ci.yml
ankit8389 Oct 11, 2023
b375fb1
Update main.yml
ankit8389 Oct 13, 2023
6875604
Rename main.yml to dev.yml
ankit8389 Oct 13, 2023
c16613a
Update ci.yml
ankit8389 Oct 13, 2023
aa9acbd
Update publish.yml
ankit8389 Oct 13, 2023
7f3324f
Update dev.yml
ankit8389 Oct 13, 2023
425503a
Update dev.yml
ankit8389 Oct 13, 2023
f7f811b
Update dev.yml
ankit8389 Oct 13, 2023
09598ca
Update dev.yml
ankit8389 Oct 13, 2023
a92a6a8
Update dev.yml
ankit8389 Oct 13, 2023
86ac67f
Update dev.yml
ankit8389 Oct 13, 2023
86577c5
Update dev.yml
ankit8389 Oct 13, 2023
444c39e
Update dev.yml
ankit8389 Oct 13, 2023
caf9131
Update dev.yml
ankit8389 Oct 13, 2023
a3a5d26
Update dev.yml
ankit8389 Oct 13, 2023
6cf8b93
Create index.html
ankit8389 Oct 13, 2023
2a1ae11
Update dev.yml
ankit8389 Oct 13, 2023
625ee84
Update dev.yml
ankit8389 Oct 13, 2023
fe0c84c
Update dev.yml
ankit8389 Oct 13, 2023
9f12283
Update dev.yml
ankit8389 Oct 13, 2023
0f1a235
Create index.html
ankit8389 Oct 13, 2023
208b1ba
Update dev.yml
ankit8389 Oct 13, 2023
93c94b1
Update dev.yml
ankit8389 Oct 13, 2023
a3cc9a9
Update dev.yml
ankit8389 Oct 13, 2023
ee2c9df
Update dev.yml
ankit8389 Oct 13, 2023
6e8f3fa
Update dev.yml
ankit8389 Oct 13, 2023
36f9b53
Update dev.yml
ankit8389 Oct 13, 2023
752ce81
Update dev.yml
ankit8389 Oct 13, 2023
1f4c1c7
Update dev.yml
ankit8389 Oct 13, 2023
ec9e944
Update dev.yml
ankit8389 Oct 13, 2023
7d31006
Update dev.yml
ankit8389 Oct 13, 2023
f55482a
Update dev.yml
ankit8389 Oct 13, 2023
b8edba2
Update dev.yml
ankit8389 Oct 13, 2023
3c676d2
Update dev.yml
ankit8389 Oct 13, 2023
13be19b
Update dev.yml
ankit8389 Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1 @@
# Continuous Integration workflow to:
# 1. Build, lint, and test project
# 2. Commit any updates to "dist" folder

on:
push:
branches:
- main
pull_request:

name: Continuous Integration

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '12'

- run: npm install

- run: npm run build

- run: npm run lint

- run: npm run test

- name: Examine changes
run: |-
echo 'FILES_CHANGED<<EOF' >> $GITHUB_ENV
git diff --exit-code dist/index.js >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV

- name: Update dist
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }}
uses: swinton/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files:
dist/index.js
commit-message: Update dist
61 changes: 61 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: tester1
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '12'

- run: npm install

- run: npm run build

- run: npm run lint

- run: npm run test

- name: Examine changes
run: |-
echo 'FILES_CHANGED<<EOF' >> $GITHUB_ENV
git diff --exit-code dist/index.js >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV

- name: Update dist
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.FILES_CHANGED }}
uses: swinton/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files:
dist/index.js
commit-message: Update dist
Deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Upload to blob storage
uses: Azure/[email protected]
with:
inlineScript: |
az storage blob upload-batch --account-name staticcontent1 --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s dist/

- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name "staticwebsite" --name "staticwebsite123" --resource-group "tester"
- name: logout
run: |
az logout
if: always()
20 changes: 0 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
# Publish workflow to automate semantic tagging after manual release
# Read more here: https://docs.github.com/en/actions/creating-actions/about-actions#using-release-management-for-actions

name: Publish

on:
release:
types: [published, edited]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}

- uses: JasonEtco/build-and-tag-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}
6 changes: 6 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Hello World
Hello World
Hello World
Hello World