Skip to content

Commit f5488dc

Browse files
authored
Docs (#45)
* Fix documentation * Fix release scripts --------- Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent ebaf102 commit f5488dc

File tree

2 files changed

+1
-67
lines changed

2 files changed

+1
-67
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -27,69 +27,3 @@ jobs:
2727
run: |
2828
cargo login $TOKEN
2929
cargo publish --allow-dirty
30-
31-
archive:
32-
name: Archive
33-
runs-on: ubuntu-latest
34-
continue-on-error: true
35-
steps:
36-
- name: Checkout repository
37-
uses: actions/checkout@v4
38-
39-
- name: Determine archive name
40-
shell: bash
41-
run: |
42-
echo "ARCHIVE=cggtts-${{ github.ref_name }}" >> $GITHUB_ENV
43-
44-
- name: Creating directory for archive
45-
shell: bash
46-
run: |
47-
mkdir -p "$ARCHIVE"
48-
cp {README.md,LICENSE} "$ARCHIVE"
49-
50-
- name: Gzip archive (Unix)
51-
shell: bash
52-
run: |
53-
tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
54-
shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
55-
echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
56-
echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV
57-
58-
- name: Upload artifacts
59-
uses: actions/upload-artifact@v4
60-
with:
61-
name: ${{ env.ASSET }}
62-
path: |
63-
${{ env.ASSET }}
64-
65-
release:
66-
runs-on: ubuntu-latest
67-
needs: ['archive']
68-
# continue even though we failed to download or upload one
69-
# or more artefacts
70-
continue-on-error: true
71-
steps:
72-
- name: Create Release
73-
id: create_release
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
uses: actions/create-release@v1
77-
with:
78-
draft: true
79-
tag_name: ${{ github.ref_name }}
80-
release_name: ${{ github.ref_name }}
81-
82-
- name: Download Artifact
83-
uses: actions/download-artifact@v4
84-
with:
85-
name: cggtts-${{ github.ref_name }}
86-
87-
- name: Upload asset
88-
uses: actions/upload-release-asset@v1
89-
env:
90-
GITHUB_TOKEN: ${{ github.token }}
91-
with:
92-
upload_url: ${{ steps.create_release.outputs.upload_url }}
93-
asset_path: cggtts-${{ github.ref_name }}
94-
asset_name: cggtts-${{ github.ref_name }}
95-
asset_content_type: application/gzip

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/rtk-rs/cggtts"
99
keywords = ["geo", "gnss", "timing", "gps"]
1010
categories = ["science", "science:geo", "parsing"]
1111
edition = "2018"
12-
readme = "../README.md"
12+
readme = "README.md"
1313
exclude = [
1414
"data/*",
1515
]

0 commit comments

Comments
 (0)