Repository: yamatokataoka/reinforcement-learning-replications (language: python)

Issue:
Simplify release flow
- it doesn't need to publish to TestPyPI
- add release flow in README


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..7a9da02
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,33 @@
+name: Publish to PyPI
+
+on:
+  release:
+    types:
+      - published
+
+jobs:
+  publish:
+    name: Publish to PyPI
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: '3.6'
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          python -m pip install --upgrade build
+
+      - name: Build
+        run: python -m build --sdist --wheel --outdir dist/ .
+
+      - name: Publish to PyPI
+        uses: pypa/gh-action-pypi-publish@release/v1
+        with:
+          user: __token__
+          password: ${{ secrets.PYPI_TOKEN }}
diff --git a/README.md b/README.md
index e4a2fac..5caeb28 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,13 @@
 # Reinforcement Learning Replications
 Reinforcement Learning Replications is a set of Pytorch implementations of reinforcement learning algorithms.
 
+
 ## Features
 
 - Use Python standard logging library
 - Support TensorBoard
 
+
 ## Benchmarks
 
 The Reinforcement Learning Replications is benchmarked in two environments from the OpenAI Gym: CartPole-v0 and LunarLander-v2.
@@ -88,3 +90,18 @@ Sample result and trained model stored at `./runs/vpg/CartPole-v0`.
 Sample result and trained model stored at `./runs/vpg/LunarLander-v2`.
 
 ![CartPole-v0 with VPG](https://raw.githubusercontent.com/yamatokataoka/reinforcement-learning-replications/master/docs/vpg/LunarLander-v2_3seeds.png)
+
+
+## Contributing
+
+All contributions are welcome.
+
+### Release Flow
+
+1. A release branch with a version
+1. A pull request from the release branch to the main branch (`master`)
+
+Once the pull request is ready,
+
+1. Merge the pull request
+1. Create a release with the version. Once the release is published, packages will be uploaded.
diff --git a/VERSION b/VERSION
index 12544fa..bcab45a 100644
--- a/VERSION
+++ b/VERSION
@@ -1,1 +1,1 @@
-0.0.4.dev
+0.0.3


Test patch:
diff --git a/.github/workflows/publish-to-pypi-or-testpypi.yml b/.github/workflows/publish-to-pypi-or-testpypi.yml
deleted file mode 100644
index b1af8d5..0000000
--- a/.github/workflows/publish-to-pypi-or-testpypi.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-name: Publish distributions to PyPI or TestPyPI
-
-on:
-  # publish to PyPI when release is published
-  release:
-    types:
-      - published
-  # publish to TestPyPI when commited on master
-  push:
-    branches:
-      - master
-
-jobs:
-  build-and-publish:
-    name: Build and publish distributions to PyPI or TestPyPI
-    runs-on: ubuntu-latest
-
-    steps:
-      - uses: actions/checkout@v2
-
-      - name: Set up Python
-        uses: actions/setup-python@v2
-        with:
-          python-version: '3.6'
-
-      - name: Install dependencies
-        run: |
-          python -m pip install --upgrade pip
-          python -m pip install --upgrade build
-
-      - name: Update dev version for TestPyPI
-        if: github.event_name == 'push'
-        run: |
-          RL_REPLICAS_VERSION=$(cat VERSION)
-          DATETIME=`date +"%Y%m%d%H%M%S%3N"`
-          echo "${RL_REPLICAS_VERSION}${DATETIME}" > VERSION
-
-      - name: Build a binary wheel and a source tarball
-        run: python -m build --sdist --wheel --outdir dist/ .
-
-      - name: Publish distribution to PyPI
-        if: github.event_name == 'release'
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_TOKEN }}
-
-      - name: Publish distribution to TestPyPI
-        if: github.event_name == 'push' || github.event_name == 'release'
-        uses: pypa/gh-action-pypi-publish@release/v1
-        with:
-          user: __token__
-          password: ${{ secrets.TEST_PYPI_TOKEN }}
-          repository_url: https://test.pypi.org/legacy/