Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
publish first version of timecop
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvw committed Feb 6, 2021
0 parents commit fe76591
Show file tree
Hide file tree
Showing 22 changed files with 2,526 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: weekly
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Timecop

on:
push:
tags:
- 'v*'

jobs:
release:
name: Build and Release
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
id: build_release
run: |
export VERSION=$(echo ${{ github.ref }} | sed -e 's/[^0-9\.]//g')
sed -i '' 's/version = "0.1.0"/version = "'${VERSION}'"/' Cargo.toml
cargo build --release
echo ::set-output name=VERSION::${VERSION}
- name: Archive
run: |
cp LICENSE ./target/release/LICENSE
cp README.md ./target/release/README.md
mkdir -p ./target/release/bin
cp ./target/release/timecop ./target/release/bin/timecop
tar -C ./target/release -zcvf release.tar.gz README.md LICENSE bin/timecop
- 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: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.tar.gz
asset_name: timecop-${{ steps.build_release.outputs.VERSION }}-darwin.tar.gz
asset_content_type: application/gzip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rust stable
Loading

0 comments on commit fe76591

Please sign in to comment.