Skip to content

Commit

Permalink
Add action for publishing to Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
djjudas21 authored and nward committed Apr 10, 2022
1 parent dbed609 commit 6e2ed0e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and publish to Puppet Forge

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get latest tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF:10}
- name: Clone repository
uses: actions/checkout@v2
with:
ref: ${{ steps.vars.outputs.tag }}
- name: Build and publish module
uses: barnumbirr/[email protected]
env:
FORGE_API_KEY: ${{ secrets.FORGE_API_KEY }}
REPOSITORY_URL: https://forgeapi.puppet.com/v3/releases

0 comments on commit 6e2ed0e

Please sign in to comment.