-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 1.04 KB
/
Copy pathdeploy.yml
File metadata and controls
29 lines (28 loc) · 1.04 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
name: Deploy
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Set up Ruby
uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0
with:
ruby-version: '3.4'
- name: Install and configure poetry
run: python -m pip install poetry
- name: Install python packages
run: python -m poetry install --only main
- name: Configure rubygems permissions
run: mkdir -p "${HOME}/.gem" && echo ':rubygems_api_key:'" \"${RUBYGEMS_API_KEY}\"" > "${HOME}/.gem/credentials" && chmod 0600 "${HOME}/.gem/credentials"
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
- name: Deploy
run: python -m poetry run python run-ci.py deploy --version "${GITHUB_REF#refs/tags/}"