Skip to content

Commit

Permalink
pipeline improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Jan 3, 2024
1 parent 345301d commit 4b36534
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 73 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish Documentation

on:
push:
branches:
- main
- master
workflow_dispatch:
workflow_call:

jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Generate docs
run: npm run doc

- name: Extract version
id: pkg
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Checkout docs branch
uses: actions/checkout@v4
with:
ref: docs
clean: false

- name: Copy docs to root
run: |
cp -v -r docs/* .
rm -rf docs
- name: Commit and push docs
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m "Update documentation for version v${{ env.VERSION }}"
git push
40 changes: 1 addition & 39 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,45 +66,7 @@ jobs:
name: Docs publish
needs:
- publish
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: master

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Generate docs
run: npm run doc

- name: Extract version
id: pkg
run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Checkout docs branch
uses: actions/checkout@v4
with:
ref: docs
clean: false

- name: Copy docs to root
run: |
cp -r docs/* .
- name: Commit and push docs
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m "Update documentation for version v${{ env.VERSION }}"
git push
uses: MrRefactoring/jira.js/.github/workflows/deploy-docs.yaml@master

creating-git-tag:
name: Create Git Tag
Expand Down
56 changes: 28 additions & 28 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "^20.9.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
"@types/node": "^20.10.6",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"dependencies": {
"jira.js": "latest"
Expand Down
2 changes: 1 addition & 1 deletion src/serviceDesk/parameters/attachTemporaryFile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface Attachment {
export interface Attachment {
filename: string;
file: Buffer | ReadableStream | string | Blob | File;
}
Expand Down
2 changes: 1 addition & 1 deletion src/version2/parameters/addAttachment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface Attachment {
export interface Attachment {
filename: string;
file: Buffer | ReadableStream | string | Blob | File;
}
Expand Down
2 changes: 1 addition & 1 deletion src/version3/parameters/addAttachment.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface Attachment {
export interface Attachment {
filename: string;
file: Buffer | ReadableStream | string | Blob | File;
}
Expand Down

0 comments on commit 4b36534

Please sign in to comment.