chore: Moving function examples to dedicated folder #10
Workflow file for this run
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
name: 'Publish resources to Preset workspace' | |
env: | |
WORKSPACE: ${{ secrets.WORKSPACE }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
publish: | |
name: 'Publish resources' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: 'Checkout CLI' | |
uses: actions/checkout@v3 | |
with: | |
repository: preset-io/backend-sdk | |
path: preset-cli | |
- name: 'Install CLI' | |
run: | | |
cd preset-cli | |
pip install . | |
cd .. | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
- name: 'Publish resources' | |
env: | |
PRESET_API_TOKEN: ${{ secrets.PRESET_API_TOKEN }} | |
PRESET_API_SECRET: ${{ secrets.PRESET_API_SECRET }} | |
run: preset-cli --workspaces=${WORKSPACE} superset sync native . --disallow-edits --overwrite |