Merge pull request #143 from malloydata/maden/fix_typo #19
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 GitHub | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/pyproject.toml" | |
- "**/src/malloy/__init__.py" | |
jobs: | |
test: | |
uses: "./.github/workflows/test.yaml" | |
secrets: | |
SNOWFLAKE_CONNECTION: ${{ secrets.SNOWFLAKE_CONNECTION }} | |
BIGQUERY_KEY: ${{ secrets.BIGQUERY_KEY }} | |
publish-github: | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
token: ${{ secrets.GHAPI_PAT }} | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18.x" | |
- name: Use Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install | |
run: | | |
python3 -m pip install --upgrade pip --user | |
python3 -m pip install pip-tools --user | |
python3 -m pip install -r requirements.dev.txt --user | |
python3 -m pip install -e . --user | |
- name: Build | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Malloy CI Bot" | |
python3 -m bumpver update --tag dev --allow-dirty | |
python3 -c 'import malloy; malloy.gen_requirements_file()' | |
./scripts/gen-services.sh | |
python3 -m build | |
- name: Publish | |
run: | | |
python3 scripts/do-github-release.py | |
env: | |
CI: true | |
GHAPI_PAT: ${{ secrets.GHAPI_PAT }} |