This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
Add license to files (#25) #8
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Publish proto to jfrog | |
on: | |
push: | |
tags: | |
- v** | |
env: | |
JF_URL: https://restatedev.jfrog.io | |
JF_USER: ${{ secrets.JFROG_USERNAME }} | |
JF_PASSWORD: ${{ secrets.JFROG_TOKEN }} | |
jobs: | |
publish-proto-to-jfrog: | |
runs-on: ubuntu-latest | |
timeout-minutes: 70 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Setup JFrog CLI | |
- uses: jfrog/setup-jfrog-cli@v2 | |
- name: Publish to JFrog | |
env: | |
JF_URL: https://restatedev.jfrog.io | |
JF_USER: ${{ secrets.JFROG_USERNAME }} | |
JF_PASSWORD: ${{ secrets.JFROG_TOKEN }} | |
run: | | |
# Figure out the version | |
VERSION=${GITHUB_REF/refs\/tags\/v} | |
if [ -z "$VERSION" ] | |
then | |
echo "Could not determine the version from GITHUB_REF: $GITHUB_REF" | |
exit | |
fi | |
# Compress the file | |
tar -czvf proto-$VERSION.tar.gz dev | |
# Upload to JFrog | |
jf rt ping --url=$JF_URL/artifactory --user=$JF_USER --password=$JF_PASSWORD | |
jf rt u --url=$JF_URL/artifactory --user=$JF_USER --password=$JF_PASSWORD proto-$VERSION.tar.gz proto-generic-local/dev/restate/proto/ |