Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xvrh committed May 25, 2023
1 parent 0d9ccc7 commit a6ca517
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: aws_client
8 changes: 8 additions & 0 deletions aws_client/examples/iot.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:aws_client/iot_data_plane_2015_05_28.dart';

void main() async {
final api = IoTDataPlane(region: 'eu-west-1');
final shadow = await api.getThingShadow(thingName: 'my_thing');
print(shadow.payload);
api.close();
}
2 changes: 1 addition & 1 deletion aws_client/examples/lambda.example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'package:aws_client/lambda_2015_03_31.dart';

Future main(List<String> args) async {
void main(List<String> args) async {
final lambda = Lambda(region: 'us-west-1');

try {
Expand Down
13 changes: 13 additions & 0 deletions aws_client/examples/s3.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import 'dart:io';

import 'package:aws_client/s3_2006_03_01.dart';

void main() async {
final api = S3(region: 'eu-west-1');
await api.createBucket(bucket: 'my_bucket');
await api.putObject(
bucket: 'my_bucket',
key: 'my_file.png',
body: File('my_file.png').readAsBytesSync());
api.close();
}
5 changes: 2 additions & 3 deletions aws_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: aws_client
description: High-level APIs for Amazon Web Services (AWS)
description: Auto-generated client libraries for accessing Amazon Web Services (AWS) APIs
version: 0.4.0

homepage: https://github.com/agilord/aws_client

environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
crypto: ^3.0.1
http: ^0.13.1
http: '>=0.13.1 <2.0.0'
meta: ^1.3.0
xml: '>=6.0.0 <7.0.0'
intl: '>=0.17.0 <0.19.0'
Expand Down

0 comments on commit a6ca517

Please sign in to comment.