Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 25d9cc7

Browse files
committed
Revert "Delete .github directory"
This reverts commit 2812eff.
1 parent 2812eff commit 25d9cc7

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/build.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: BUILD
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the main branch
7+
on:
8+
push:
9+
branches: [main]
10+
pull_request:
11+
branches: [main]
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
- name: Check out repo
20+
uses: actions/checkout@v2
21+
# Node is required for npm
22+
- name: Set up Node
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '16'
26+
# Install and build Docusaurus website
27+
- name: Build Docusaurus website
28+
run: |
29+
yarn
30+
yarn install
31+
yarn build

.github/workflows/deploy.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: DEPLOY
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_run:
7+
workflows: ["RELEASE"]
8+
types:
9+
- completed
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20+
- name: Check out repo
21+
uses: actions/checkout@v2
22+
# Node is required for npm
23+
- name: Set up Node
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: "16"
27+
# Install and build Docusaurus website
28+
- name: Build Docusaurus website
29+
run: |
30+
yarn
31+
yarn build
32+
- name: Deploy to GitHub Pages
33+
if: success()
34+
uses: crazy-max/ghaction-github-pages@v2
35+
with:
36+
target_branch: gh-pages
37+
build_dir: build
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
notify:
42+
name: Discord Notification
43+
runs-on: ubuntu-latest
44+
needs: # make sure the notification is sent AFTER the jobs you want included have completed
45+
- deploy
46+
if: ${{ always() }} # You always want to be notified: success, failure, or cancelled
47+
48+
steps:
49+
- name: Notify
50+
uses: nobrayner/discord-webhook@v1
51+
with:
52+
github-token: ${{ secrets.GITHUB_TOKEN }}
53+
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}

.github/workflows/release.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: RELEASE
2+
3+
on:
4+
# Allows you to run this workflow manually from the Actions tab
5+
workflow_dispatch:
6+
version:
7+
description: 'Docs version to release'
8+
inputs:
9+
version:
10+
required: false
11+
description: 'Version to update the docs to'
12+
repository_dispatch:
13+
types: [release]
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
new-version:
18+
runs-on: ubuntu-latest
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- name: Check out repo
22+
uses: actions/checkout@v2
23+
# Node is required for npm
24+
- name: Set up Node
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: "16"
28+
# Install and build Docusaurus website
29+
- name: Build Docusaurus website
30+
run: |
31+
yarn
32+
yarn build
33+
# https://docusaurus.io/docs/versioning#tagging-a-new-version
34+
- name: Tag a new version, commit the changes and push
35+
run: |
36+
export VERSION=(${{ github.event.client_payload.version }} ${{ github.event.client_payload.message.version }} ${{ github.event.inputs.version }})
37+
yarn run docusaurus docs:version $VERSION
38+
git config --local user.email "[email protected]"
39+
git config --local user.name "iasql-bot"
40+
git add -A
41+
git commit -m "$VERSION"
42+
git push
43+
44+
notify:
45+
name: Discord Notification
46+
runs-on: ubuntu-latest
47+
needs: # make sure the notification is sent AFTER the jobs you want included have completed
48+
- new-version
49+
if: ${{ always() }} # You always want to be notified: success, failure, or cancelled
50+
51+
steps:
52+
- name: Notify
53+
uses: nobrayner/discord-webhook@v1
54+
with:
55+
github-token: ${{ secrets.GITHUB_TOKEN }}
56+
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)