Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 4dc47d8

Browse files
committed
added 4.2.0
2 parents 5b32f92 + 234fd35 commit 4dc47d8

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/main.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
release:
9+
types: [created, gpublished]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
- name: Setup Python
25+
uses: actions/[email protected]
26+
with:
27+
python-version: 3.9
28+
- name: Install Packages
29+
run: |
30+
python3 -m pip install build
31+
python3 -m pip install twine
32+
- name: Build Artifact
33+
run: |
34+
python3 -m build
35+
36+
- name: Upload Artifact to PyPI
37+
env:
38+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
39+
TWINE_USERNAME: __token__
40+
run: |
41+
python3 -m twine upload dist/*
42+
- name: Upload a Build Artifact
43+
uses: actions/[email protected]
44+
with:
45+
# Artifact name
46+
name: "discord-ui"
47+
# A file, directory or wildcard pattern that describes what to upload
48+
path: "dist/*"
49+
50+
- name: Download Artifact
51+
uses: actions/[email protected]
52+
with:
53+
path: dist/
54+
# - name: pypi-publish
55+
# uses: pypa/[email protected]
56+
# with:
57+
# user: __token__
58+
# password: ${{ secrets.PYPI_TEST_TOKEN }}
59+
# repository_url: https://test.pypi.org/project/discord-ui/

0 commit comments

Comments
 (0)