root / .github / workflows / release.yml @ 5fea281f
Historique | Voir | Annoter | Télécharger (914 octets)
1 | 5fea281f | Tim | ---
|
---|---|---|---|
2 | # Managed by modulesync - DO NOT EDIT
|
||
3 | # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||
4 | |||
5 | 78f22811 | Steve Traylen | name: Release |
6 | |||
7 | on:
|
||
8 | push:
|
||
9 | tags:
|
||
10 | - '*'
|
||
11 | |||
12 | env:
|
||
13 | BUNDLE_WITHOUT: development:test:system_tests |
||
14 | |||
15 | jobs:
|
||
16 | deploy:
|
||
17 | name: 'deploy to forge' |
||
18 | runs-on: ubuntu-latest |
||
19 | 5fea281f | Tim | if: github.repository_owner == 'voxpupuli' |
20 | 78f22811 | Steve Traylen | steps:
|
21 | - name: Checkout repository
|
||
22 | uses: actions/checkout@v2 |
||
23 | - name: Setup Ruby
|
||
24 | uses: ruby/setup-ruby@v1 |
||
25 | with:
|
||
26 | ruby-version: '2.7' |
||
27 | bundler-cache: true |
||
28 | - name: Build and Deploy
|
||
29 | env:
|
||
30 | # Configure secrets here:
|
||
31 | # https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
|
||
32 | BLACKSMITH_FORGE_USERNAME: '${{ secrets.PUPPET_FORGE_USERNAME }}' |
||
33 | BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}' |
||
34 | run: bundle exec rake module:push |