Dtest #226
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
on: | |
workflow_dispatch: | |
# open, reopen and synchronize will deploy a workspace for the current commit. | |
# If a workspce is already deployed, that workspace is updated to the newest version. | |
# | |
# closed: Workspace will be deleted | |
pull_request: | |
types: | |
- closed | |
- opened | |
- reopened | |
- synchronize | |
permissions: | |
contents: read | |
pull-requests: read | |
deployments: write | |
jobs: | |
deploy: | |
# prevent multiple workspaces to be created for the same branch | |
concurrency: codesphere | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Deploy | |
uses: codesphere-cloud/gh-action-deploy@main | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
email: ${{ secrets.CODESPHERE_EMAIL }} | |
password: ${{ secrets.CODESPHERE_PASSWORD }} | |
team: 'Marketing' | |
plan: 'Micro' | |
onDemand: true | |
env: | | |
USE_VSIX=true |