File tree 1 file changed +30
-1
lines changed
1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 41
41
sudo add-apt-repository 'deb http://ppa.launchpad.net/sri-csl/formal-methods/ubuntu bionic main'
42
42
sudo apt-get update
43
43
sudo apt-get install yices2
44
- pip install codecov
44
+ pip install codecov build
45
45
pdm install --dev
46
46
- name : Cache YoWASP build products
47
47
uses : actions/cache@v4
@@ -147,3 +147,32 @@ jobs:
147
147
with :
148
148
folder : pages/
149
149
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