Skip to content

Commit

Permalink
feat(workflow): add unpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex870521 committed Nov 27, 2024
1 parent b26c57f commit c0a8792
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/unpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Delete Version and Releases

on:
workflow_dispatch:
inputs:
version:
description: 'Version to delete (e.g., v0.1.12)'
required: true
type: string

jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Delete GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
release_id=$(curl -s -H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ inputs.version }}" \
| jq -r '.id')
if [ "$release_id" != "null" ]; then
curl -X DELETE -H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/${{ github.repository }}/releases/$release_id"
echo "Deleted GitHub release for tag ${{ inputs.version }}"
else
echo "No GitHub release found for tag ${{ inputs.version }}"
fi
- name: Delete GitHub Tag
uses: actions/checkout@v4
with:
fetch-depth: 1
- run: |
git push origin --delete ${{ inputs.version }} || echo "Tag might be already deleted"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ from AeroViz import RawDataReader, DataProcess, plot

# Read data from a supported instrument
data = RawDataReader(
instrument='Neph',
instrument='NEPH',
path=Path('/path/to/data'),
start=datetime(2024, 2, 1),
end=datetime(2024, 4, 30)
Expand Down
13 changes: 1 addition & 12 deletions docs/guide/RawDataReader.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,17 +194,6 @@ Notes:
1. {instrument} will be replaced with the actual instrument name (e.g., 'AE33', 'NEPH', etc.) in the same directory as the input data.
```

---
## Data Sample

To view a sample of the processed data, you can use:

```python
print(data.head())
```

This will display the first few rows of the processed data, including timestamps and instrument-specific measurements.

---
## Parameter Explanation

Expand All @@ -214,7 +203,7 @@ This will display the first few rows of the processed data, including timestamps
- `reset` - Data processing control mode:
- `True`: Force reprocess all data from raw files
- `False` (default): Use existing processed data if available
- `'append'`: Add new data to existing processed data
- `str`: If 'append', add new data to existing processed data

- `qc` - Quality control settings:
- `True` (default): Apply default quality control
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"pandas>=2.2.0",
"numpy>=1.26.4",
"matplotlib==3.8.4",
"scipy==1.14.0",
"scipy>=1.14.0",
"seaborn==0.13.2",
"scikit-learn==1.5.1",
"windrose==1.9.2",
Expand Down

0 comments on commit c0a8792

Please sign in to comment.