forked from simonaszilinskas/albert-code
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (52 loc) · 1.61 KB
/
release.yml
File metadata and controls
61 lines (52 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Release to Pipy and Zed's store
on:
release:
types: [published]
workflow_dispatch:
jobs:
release-pypy:
name: Release to Pypi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/albert-code
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.12"
cache: pip
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: dist
path: dist/
- name: Publish distribution to PyPI
if: github.repository == 'mistralai/albert-code'
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
release-zed-extension:
name: Release Zed Extension
runs-on: ubuntu-latest
if: github.repository == 'mistralai/albert-code'
permissions:
contents: read
environment:
name: zed
steps:
- uses: huacnlee/zed-extension-action@8cd592a0d24e1e41157740f1a529aeabddc88a1b # v2
with:
extension-name: albert-code
push-to: mistralai/zed-extensions
env:
COMMITTER_TOKEN: ${{ secrets.ZED_EXTENSION_GITHUB_TOKEN }}