Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyduong1920 committed Oct 26, 2023
1 parent 482cb8f commit 8a74214
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@ on:
push:
workflow_dispatch:

env:
DOCKER_REGISTRY_HOST: ${{ secrets.HEROKU_REGISTRY_HOST }}
DOCKER_IMAGE: ${{ github.repository }}
DOCKER_REGISTRY_USERNAME: ${{ github.repository_owner }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
PHRASE_CLI_VERSION: "2.5.0"
PHRASE_ACCESS_TOKEN: ${{ secrets.PHRASE_ACCESS_TOKEN }}

jobs:
deploy:
name: Deploy the application to Heroku
name: Publish the extension to VS Code Marketplace
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

-
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Publish
run: make compile_and_package && make publish
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ Run the test from the `Status bar` or `Menu`

### III/ Publish

1. Run `make compile_and_package`
2. Run `make publish`
- Generate the VSCE_TOKEN on https://dev.azure.com/andyduong1920/_usersSettings/tokens.

1. On Github Action
- Update the secret on Github Action.
- Trigger the `publish` workflow.

2. On Local
- Run `make compile_and_package`
- Run `make publish`

### IV/ Add new Item
1. Define the bar item in `src/editableArea/1_definitions.ts`
Expand Down

0 comments on commit 8a74214

Please sign in to comment.