Skip to content

Commit

Permalink
Update publish.yml. Re-enable KONG
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-statsig committed Jun 4, 2023
1 parent 57b0382 commit 5fe9467
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 53 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/kong.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: KONG

# on:
# workflow_dispatch:
# schedule:
# - cron: "0 0/4 * * *"
# pull_request:
# branches: [main]
# push:
# branches: [main]
on:
workflow_dispatch:
schedule:
- cron: "0 0/4 * * *"
pull_request:
branches: [main]
push:
branches: [main]

env:
test_api_key: ${{ secrets.KONG_SERVER_SDK_KEY }}
Expand Down
49 changes: 4 additions & 45 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,13 @@ on:
types:
- closed

env:
public_repo: ${{ secrets.PUBLIC_SDK_REPO }}

jobs:
publish:
if: |
github.event.pull_request.merged == true &&
startsWith(github.head_ref, 'releases/')
runs-on: ubuntu-latest
steps:
- uses: statsig-io/[email protected]
with:
gh-token: ${{ secrets.GITHUB_TOKEN }}

# - name: Get Title
# id: get-title
# run: |
# input="${{ github.event.pull_request.title }}"; \
# remove="\[release\] "; \
# echo title="${input#$remove}" >> "$GITHUB_OUTPUT"

# - name: Get Version
# id: get-version
# run: |
# input="${{ steps.get-title.outputs.title }}"; \
# echo title="${input%% *}" >> "$GITHUB_OUTPUT"

# - name: Push to Public
# run: |
# git remote add public https://github.com/statsig-io/rust-sdk.git
# git push public main

# - uses: avakar/tag-and-release@v1
# with:
# tag_name: ${{ steps.get-version.outputs.title }}
# release_name: ${{ steps.get-title.outputs.title }}
# body: ${{ github.event.pull_request.body }}
# draft: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# build:
# if: "contains(github.event.head_commit.message, '[release]')"
# runs-on: ubuntu-latest

# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3

# - name: Set up Rust
# uses: actions/setup-rust@v1

# - name: Build Library
# run: cargo build --release
gh-token: ${{ secrets.KONG_FINE_GRAINED_REPO_PAT }}

0 comments on commit 5fe9467

Please sign in to comment.