Skip to content

Commit

Permalink
Revert "chore (github_actions): deploy and build configs (#141)" (#144)
Browse files Browse the repository at this point in the history
This reverts commit de35b99.
  • Loading branch information
rfazeli authored May 6, 2022
1 parent de35b99 commit 68f0610
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 75 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

81 changes: 42 additions & 39 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
name: Deploy and Publish

on:
push:
branches:
- master
workflow_run:
workflows: ["Build and Test"]
branches: [ master ]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deploy:
Expand All @@ -18,39 +22,38 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
- name: Test with pytest
run: |
pytest
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Semantic Release dependencies
run: |
sudo apt-get install bumpversion
npm install -g semantic-release
npm install -g @semantic-release/changelog
npm install -g @semantic-release/exec
npm install -g @semantic-release/git
npm install -g @semantic-release/github
npm install -g @semantic-release/commit-analyzer
npm install -g @semantic-release/release-notes-generator
npm install -g semantic-release-pypi
- name: Publish to Git Releases and Tags
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Semantic Release dependencies
run: |
sudo apt-get install bumpversion
npm install -g semantic-release
npm install -g @semantic-release/changelog
npm install -g @semantic-release/exec
npm install -g @semantic-release/git
npm install -g @semantic-release/github
npm install -g @semantic-release/commit-analyzer
npm install -g @semantic-release/release-notes-generator
- name: Publish to Git Releases and Tags
run: npx semantic-release #--dry-run --branches 9388_gha Uncomment for testxing purposes
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build binary wheel and a source tarball
run: |
pip3 install setuptools wheel twine build
python -m build --sdist --outdir dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2 # Try to update version tag every release
with:
password: ${{ secrets.PYPI_TOKEN }}
repository_url: https://upload.pypi.org/legacy/ # This must be changed if testing deploys to test.pypi.org
1 change: 0 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"semantic-release-pypi",
[
"@semantic-release/exec",
{
Expand Down

0 comments on commit 68f0610

Please sign in to comment.