Skip to content

Commit

Permalink
demo in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
xasopheno committed Oct 29, 2022
1 parent 3cdf43c commit c31c273
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,40 @@ jobs:
token: ${{ env.GH_TOKEN }}
ref: 'main'

- name: Install publish-cool-workspace
uses: baptiste0928/cargo-install@v1
with:
crate: publish-cool-workspace
# - name: Install publish-cool-workspace
# uses: baptiste0928/cargo-install@v1
# with:
# crate: publish-cool-workspace

- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- name: Setup publish to crates.io
run: |
git config --global user.email "weresocool_bot@xasopheno.com"
git config --global user.name "WereSoCool Bot"
cargo login ${{ secrets.CARGO_API_KEY }}
# - name: Setup publish to crates.io
# run: |
# git config --global user.email "weresocool_bot@xasopheno.com"
# git config --global user.name "WereSoCool Bot"
# cargo login ${{ secrets.CARGO_API_KEY }}

- name: publish to crates.io
run:
publish-cool-workspace smart-release --bump "${GITHUB_REF#refs/tags/}" --no-changelog --update-crates-index --execute
# - name: publish to crates.io
# run:
# publish-cool-workspace smart-release --bump "${GITHUB_REF#refs/tags/}" --no-changelog --update-crates-index --execute

- name: squash bump commit
run: |
git reset --soft HEAD~1
git commit --amend --no-edit
git push --force
# - name: squash bump commit
# run: |
# git reset --soft HEAD~1
# git commit --amend --no-edit
# git push --force

- name: Package MacOS Binary
run: ./scripts/package_macos.sh ${{ steps.extract-version.outputs.tag-name }}
# - name: Package MacOS Binary
# run: ./scripts/package_macos.sh ${{ steps.extract-version.outputs.tag-name }}

- name: Releasing MacOS Binary
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
target/release/weresocool-mac-${{ steps.extract-version.outputs.tag-name }}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion demo.socool
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ thing1 = {

thing2 = {
O[
(1/1, 2, 1, 1),
(1/1, 3, 1, 1),
(1/1, 0, 1, -1),
]
| Seq [
Expand Down
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub fn app() -> clap::App<'static, 'static> {
.help("filename"),
),
)
.subcommand(SubCommand::with_name("demo").help("hear a cool sound"))
.subcommand(
SubCommand::with_name("print")
.usage("weresocool print [filename.socool] [flags]")
Expand Down

0 comments on commit c31c273

Please sign in to comment.