-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/graphql-vue-approaches-guide
- Loading branch information
Showing
56 changed files
with
8,680 additions
and
3,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
branches: [develop] | ||
types: [opened, reopened, synchronize] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} | ||
|
@@ -30,10 +33,6 @@ jobs: | |
run: | | ||
npm install | ||
npx prettier --check "**/*.{graphql,yml,json,md,sh,ts,tsx,js}" | ||
cd ./publish-hashnode | ||
npm run generate | ||
cd .. | ||
npm run typecheck | ||
npm run build | ||
- name: Deploy 🚀 | ||
|
@@ -42,20 +41,26 @@ jobs: | |
with: | ||
folder: build | ||
|
||
- name: Get changed markdown files | ||
id: changed-markdown-files | ||
uses: tj-actions/changed-files@v44 | ||
with: | ||
files: | | ||
blog/**/*.{md,mdx} | ||
- name: Publish to Hashnode 📝 | ||
if: github.ref == 'refs/heads/develop' && steps.changed-markdown-files.outputs.any_changed == 'true' | ||
- name: Publish to Hashnode and Dev.to 📝 | ||
env: | ||
HASHNODE_PAT: ${{ secrets.HASHNODE_PAT }} | ||
HASHNODE_PUBLICATION_ID: ${{ secrets.HASHNODE_PUBLICATION_ID }} | ||
CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} | ||
DEVTO_API_KEY: ${{ secrets.DEVTO_API_KEY}} | ||
DEVTO_ORG_ID: ${{secrets.DEVTO_ORG_ID}} | ||
DEVTO_ORG_NAME: ${{secrets.DEVTO_ORG_NAME}} | ||
run: | | ||
cd ./publish-hashnode | ||
cd ./publish-externals | ||
npm run generate | ||
npx --yes tsx ./src/index.ts "$CHANGED_FILES" | ||
if [ "$GITHUB_REF" == "refs/heads/develop" ]; then | ||
npx --yes tsx ./src/index.ts --publish | ||
else | ||
npx --yes tsx ./src/index.ts | ||
fi | ||
- name: Commit and push changes (on develop) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/develop' | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
branch: develop | ||
commit_author: Author <[email protected]> | ||
commit_message: "[ci skip] update snapshot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.