forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease_step_2_create_github_release.yml
More file actions
55 lines (46 loc) · 1.32 KB
/
release_step_2_create_github_release.yml
File metadata and controls
55 lines (46 loc) · 1.32 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
---
name: Release Step 2 - Create GitHub Release
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
skip_github_packages:
description: 'Skip pushing to GitHub Packages'
required: true
default: false
type: boolean
skip_rubygems:
description: 'Skip pushing to RubyGems'
required: true
default: false
type: boolean
jobs:
create_github_release:
runs-on: macos-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install fastlane
run: bundle install
- uses: rubygems/configure-rubygems-credentials@v1.0.0
- name: Configure GitHub Packages config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p ~/.gem
echo ":github: Bearer $GITHUB_TOKEN" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Run fastlane
env:
FASTLANE_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
run: |
bundle exec fastlane create_github_release skip_github_packages:${{ github.event.inputs.skip_github_packages }} skip_rubygems:${{ github.event.inputs.skip_rubygems }}