Skip to content

Commit

Permalink
Add Artifactory workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-cfuller committed Sep 8, 2023
1 parent 4a2eed0 commit 8e40c6a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/artifactory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Artifactory

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

env:
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer

jobs:
artifactory:
name: Artifactory
runs-on: macos-13
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
steps:
- name: Install dependencies
run: brew install jfrog-cli
- name: Checkout source
uses: actions/checkout@v3
- name: Archive
run: tar -czf "CollectionBuilders-${GITHUB_REF_NAME}.tar.gz" Sources
- name: Upload
run: >
jf rt u
--url="https://tinder.jfrog.io/artifactory"
--access-token="${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}"
--flat="true"
"CollectionBuilders-${GITHUB_REF_NAME}.tar.gz"
"swift-package-releases/CollectionBuilders/"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[![Swift](https://github.com/Tinder/CollectionBuilders/actions/workflows/swift.yml/badge.svg?event=push)](https://github.com/Tinder/CollectionBuilders/actions/workflows/swift.yml)
 
[![Bazel](https://github.com/Tinder/CollectionBuilders/actions/workflows/bazel.yml/badge.svg?event=push)](https://github.com/Tinder/CollectionBuilders/actions/workflows/bazel.yml)
 
[![Artifactory](https://github.com/Tinder/CollectionBuilders/actions/workflows/artifactory.yml/badge.svg?event=push)](https://github.com/Tinder/CollectionBuilders/actions/workflows/artifactory.yml)

# Collection Builders

Expand Down

0 comments on commit 8e40c6a

Please sign in to comment.