Skip to content

Commit 9f56cf9

Browse files
authored
Migrate to github actions (#237)
* Migrate to github actions * Delete .appveyor.yml
1 parent 2c6d1da commit 9f56cf9

File tree

2 files changed

+61
-29
lines changed

2 files changed

+61
-29
lines changed

.appveyor.yml

-29
This file was deleted.

.github/workflows/publish.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Build & Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release-build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install deps
23+
run: python -m pip install wheel build
24+
25+
- name: Test install
26+
run: python -m pip install .
27+
28+
- name: Build for distribution
29+
run: python -m build
30+
31+
- name: Upload distributions
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: release-dists
35+
path: dist/
36+
37+
pypi-publish:
38+
runs-on: ubuntu-latest
39+
needs:
40+
- release-build
41+
permissions:
42+
# IMPORTANT: this permission is mandatory for trusted publishing
43+
id-token: write
44+
45+
# Dedicated environments with protections for publishing are strongly recommended.
46+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
47+
environment:
48+
name: pypi
49+
url: https://pypi.org/p/rlbot-gui
50+
51+
steps:
52+
- name: Retrieve release distributions
53+
uses: actions/download-artifact@v4
54+
with:
55+
name: release-dists
56+
path: dist/
57+
58+
- name: Publish release distributions to PyPI
59+
uses: pypa/gh-action-pypi-publish@release/v1
60+
with:
61+
packages-dir: dist/

0 commit comments

Comments
 (0)