F/2098/generalize (#2) #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nullstone | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
# Checkout the repository to the GitHub Actions runner | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Find version | |
id: version | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/v} | |
# Package files into tgz | |
- name: Package | |
run: tar -cvzf module.tgz *.tf | |
# Publish to nullstone | |
- name: Publish | |
env: | |
NULLSTONE_ORG: nullstone | |
NULLSTONE_MODULE: autogen-gcp-subdomain | |
RELEASE_VERSION: ${{ steps.version.outputs.tag }} | |
run: |- | |
curl -XPOST -F "file=@module.tgz" -H "X-Nullstone-Key: ${{ secrets.NULLSTONE_API_KEY }}" \ | |
https://api.nullstone.io/orgs/${NULLSTONE_ORG}/modules/${NULLSTONE_MODULE}/versions?version=${RELEASE_VERSION} |