Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from wasmCloud/remaining-actions
Browse files Browse the repository at this point in the history
Implement remaining actions
  • Loading branch information
brooksmtownsend authored Sep 4, 2021
2 parents b64afb2 + dfa7682 commit 580276b
Show file tree
Hide file tree
Showing 8 changed files with 386 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/TEMPLATE.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Replace all occurrences of "INTERFACE" with the interface name (e.g. HTTPCLIENT)
# Replace all occurrences of "interface" with the folder name of the interface (e.g. `interface`, `httpclient`, etc)
name: INTERFACE-RELEASE
name: INTERFACE

on:
push:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/factorial.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: FACTORIAL

on:
push:
branches: [ main ]
paths:
- "factorial/rust/**"
tags:
- 'factorial-v*'
pull_request:
branches: [ main ]
paths:
- "factorial/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./factorial/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/httpclient.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: HTTPCLIENT

on:
push:
branches: [ main ]
paths:
- "httpclient/rust/**"
tags:
- 'httpclient-v*'
pull_request:
branches: [ main ]
paths:
- "httpclient/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./httpclient/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/keyvalue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: KEYVALUE

on:
push:
branches: [ main ]
paths:
- "keyvalue/rust/**"
tags:
- 'keyvalue-v*'
pull_request:
branches: [ main ]
paths:
- "keyvalue/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./keyvalue/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/logging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: LOGGING

on:
push:
branches: [ main ]
paths:
- "logging/rust/**"
tags:
- 'logging-v*'
pull_request:
branches: [ main ]
paths:
- "logging/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./logging/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: MESSAGING

on:
push:
branches: [ main ]
paths:
- "messaging/rust/**"
tags:
- 'messaging-v*'
pull_request:
branches: [ main ]
paths:
- "messaging/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./messaging/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/numbergen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: NUMBERGEN

on:
push:
branches: [ main ]
paths:
- "numbergen/rust/**"
tags:
- 'numbergen-v*'
pull_request:
branches: [ main ]
paths:
- "numbergen/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./numbergen/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: TESTING

on:
push:
branches: [ main ]
paths:
- "testing/rust/**"
tags:
- 'testing-v*'
pull_request:
branches: [ main ]
paths:
- "testing/rust/**"

env:
CARGO_TERM_COLOR: always
working-directory: ./testing/rust

jobs:
rust_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: rust-check-action
uses: wasmcloud/common-actions/rust-check@main
with:
working-directory: ${{ env.working-directory }}

github_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: rust_check
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

crates_release:
if: startswith(github.ref, 'refs/tags/') # Only run on tag push
needs: github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: crates-release-action
uses: wasmcloud/common-actions/crates-release@main
with:
working-directory: ${{ env.working-directory }}
crates-token: ${{ secrets.CRATES_PUBLISH_TOKEN }}

0 comments on commit 580276b

Please sign in to comment.