File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 4141 sudo add-apt-repository 'deb http://ppa.launchpad.net/sri-csl/formal-methods/ubuntu bionic main'
4242 sudo apt-get update
4343 sudo apt-get install yices2
44- pip install codecov
44+ pip install codecov build
4545 pdm install --dev
4646 - name : Cache YoWASP build products
4747 uses : actions/cache@v3
@@ -147,3 +147,32 @@ jobs:
147147 with :
148148 folder : pages/
149149 clean : false
150+
151+ publish-code :
152+ needs : required
153+ runs-on : ubuntu-latest
154+ environment : publish
155+ permissions :
156+ id-token : write
157+ steps :
158+ - name : Check out source code
159+ uses : actions/checkout@v4
160+ with :
161+ fetch-depth : 0
162+ - name : Build package
163+ run : |
164+ pip install build
165+ python -m build
166+ - name : Upload package artifact
167+ uses : actions/upload-artifact@v4
168+ with :
169+ name : code
170+ path : dist/
171+ - name : Publish package to Test PyPI
172+ if : ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
173+ uses : pypa/gh-action-pypi-publish@release/v1
174+ with :
175+ repository-url : https://test.pypi.org/legacy/
176+ - name : Publish package to PyPI
177+ if : ${{ github.repository == 'amaranth-lang/amaranth' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') }}
178+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments